import java.io.*; import java.util.*; class Main{ public static void main(String[] args)throws IOException { Scanner scan=new Scanner(System.in); int n=Integer.parseInt(scan.next()); int f=Integer.parseInt(scan.next()); int floor=1; if(n