import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDouble(); int ans = 1; if((b / a) >= 1600) ans = 2; System.out.println(ans); } }