#include<bits/stdc++.h>
using namespace std;
int main(void){
    int h,r;
    cin >> h >> r;
    int d = h+r;
    if(d==0)cout << 0;
    else if(d<0)cout << -1;
    else if(d>0)cout << 1;
    cout << endl;
    return 0;
}
