//TODO
public class demo { public static void main(String[] args) { demo.ss();
demo.sss(); } public static int ss(){ int f = 5; int s =3; while (f != 4){ if(f>=s){ f = f-s; if(f == 4){ System.out.println("fffff=="+f); return f; } }else{ s =s-f; f=5; } } return f; }
public static int sss(int f,int s){ if(f == 4){ System.out.println("fffff=="+f); return f; } if(f>=s){ f = f-s; }else { s =s-f; f=5; } return sss(f,s); }
}