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