#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
    int H,R;
    cin >> H >> R;
    if(H+R > 0){
        cout<<1<<endl;
    }
    if(H+R == 0){
        cout<<0<<endl;
    }
    if(H+R < 0){
        cout<<-1<<endl;
    }
}

