#include #define llint long long using namespace std; llint a, b; int main(void) { cin >> a >> b; llint x = a * 40, y = a * 1600; if(b <= (x+y)/2) cout << 1 << endl; else cout << 2 << endl; return 0; }