#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using ll = long long; using P = std::pair; #define rep(i, a, b) for (ll(i) = (a); i < (b); i++) #define all(i) i.begin(), i.end() #define debug(i) std::cout << i << "\n" //const ll MOD = 998244353; const ll MOD = 1e9+7; int main() { std::cin.tie(0); std::ios::sync_with_stdio(false); //問題文中の添え字が0-indexか1-indexか確認! ll a,b; std::cin>>a>>b; if(b/a>=1000)std::cout<<2<<"\n"; else std::cout<<1<<"\n"; return 0; }