#include using namespace std; int main() { int A, B; cin >> A >> B; int a = 0; if (!B) { a = 1; } else { if ((A > 0) && (B > 0)) { a = -1; } else { if (A == -1) { a = 2; } else { a = -1; } } } cout << a << endl; }