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