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