#include int main() { long long a, b; scanf("%lld %lld", &a, &b); printf("%d\n", (b+1)/(a+1)<50 ? 1: 2); return 0; }