#include using namespace std; int main() { int x, y; cin >> x >> y; if (x == y) { cout << 1 << endl; } else { cout << 2 << endl; } }