#include #include int main() { int x, y; std::cin >> x >> y; std::cout << 2 - (abs(x) == abs(y)); return 0; }