package con_level_1; import java.util.Scanner; public class Con863 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int A = s.nextInt() , B = s.nextInt(); s.close(); if(B/A < 1000){ System.out.println("1"); }else{ System.out.println("2"); } } }