#include using namespace std; int main() { int A, B; cin >> A >> B; if (B / A >= 1600) { assert(A == B / 1600); cout << "2" << endl; } else { assert(A == B / 40); cout << "1" << endl; } return 0; }