#include int main(void){ int a,b; scanf("%d%d", &a, &b); int div=b/a; if(div<=1000){ printf("1\n"); }else{ printf("2\n"); } return 0; }