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