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