#include using namespace std; using ll = long long int; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ll a, b; cin >> a >> b; double p1 = a / 5.0; double p2 = b / 200.0; if (p1 < p2) swap(p1, p2); double q1 = a / 25.0; double q2 = b / 40000.0; if (q1 < q2) swap(q1, q2); if (abs(p1 / p2) < abs(q1 / q2)) { cout << 1 << endl; } else { cout << 2 << endl; } return 0; }