#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include using namespace std; int main() { int a, b; cin >> a >> b; if (a == b) { cout << 0 << endl; return 0; } if (!b)cout << 1 << endl; else if (!a)cout << 2 << endl; else if (abs(a) == abs(b))cout << 3 << endl; else cout << -1 << endl; return 0; }