#include <iostream>
using namespace std;
int main()
{
	int H, R;
	cin >> H;
	cin >> R;
	int ans = H + R;
    if (ans > 0)cout << "1" << endl;
	else if (ans < 0)cout << "-1" << endl;
	else cout << "0" << endl;
	return 0;
}

