#include using namespace std; int main(){ int n,m;cin>>n>>m; if(m/n < 60){ cout << 1 << endl; }else{ cout << 2 << endl; } }