#include using namespace std; int main(){ double A, B; cin >> A >> B; double R = B/A; double R1 = 200000/5000; double R2 = R1*R1; cout << (R2/R <= R/R1 ? 2 : 1) << endl; return 0; }