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