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