#include #include #include using namespace std; int main(){ int a, b, ans; cin >> a >> b; ans = 2; if ( (a+1)*40 > b >= a*40 ) ans = 1; cout << ans << endl; return 0; }