#include #define int long long using namespace std; signed main() { double a, b; cin >> a >> b; double x = abs(a / 5000 - b / 200000); double y = abs(a / 5000 / 5000 - b / 200000 / 200000); cerr << x << " " << y << endl; if (x < y)cout << 1 << endl; else cout << 2 << endl; }