#include using namespace std; int main() { int a, b; cin >> a >> b; cout << ((b+1)/(a+1)<50 ? 1: 2) << endl; }