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