#include <iostream>
using namespace std;
int main(void){
    int a,b;
    cin>>a>>b;
    if(a>0||a==0){cout<<"1"<<endl;}
    if(a<0&&-b==a){cout<<"0"<<endl;}
    else if(a<0){cout<<"-1"<<endl;}
}
    

