import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] str=sc.nextLine().split(" "); int[] num=new int[2]; num[0]=Integer.parseInt(str[0]); num[1]=Integer.parseInt(str[1]); sc.close(); int tmp1=0,tmp2=1; int count=2; while(count++