#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(40*a<=b-40 || b+1<=40*a) cout<<2<