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