#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define popcount __builtin_popcount using namespace std; typedef long long int ll; typedef pair P; int main() { ll a, b; cin>>a>>b; if(20*a<=b-20 || b+1<=20*a) cout<<2<