#include using namespace std; int main() { long long A, B; cin >> A >> B; int ans = 2; long double P = ( (long double)B / 200000 ) / ((long double)A / 5000 ); long double Q = ( (long double)B / 200000 / 200000 ) / ((long double)A / 5000 / 5000 ); if( fabs( P - 1 ) < fabs( Q - 1 ) ) ans = 1; cout << ans << endl; }