#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; int main(){ ll a, b; cin >> a >> b; if(a >= 0 && b > 0){ cout << -1 << endl; }else{ if(b == 0){ cout << 1 << endl; }else if(a == -1){ cout << 2 << endl; } } return 0; }