#include #include using namespace std; int main() { int a, b; cin >> a >> b; double p = log((double) b / a) / log(40.0); cout << (fabs(p - 1.0) < fabs(p - 2.0) ? '1' : '2') << endl; return 0; }