#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a,b;
    cin>>a>>b;
    if((a+b)<0) cout<<"-1"<<endl;
    if((a+b)>0) cout<<"1"<<endl;
    if((a+b)==0) cout<<"0"<<endl;
}
