#include<bits/stdc++.h>
using namespace std;

int main(){
   int h, r;
   cin>>h>>r;
   if( - h - r < 0 ) cout<<"1"<<endl;
   if( - h - r > 0 ) cout<<"-1"<<endl;
   if( h + r == 0 ) cout<<"0"<<endl;

   return 0;
}

