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