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