#include using namespace std; using ll = long long; #define FOR(i,a,b) for(ll i=(a);i<(b);++i) #define ALL(v) (v).begin(), (v).end() #define p(s) cout<<(s)< void vprint(T &V){ for(auto v : V){ cout << v << " "; } cout << endl; } int main(){ cin.tie(0); ios::sync_with_stdio(false); // input ll X, Y; cin >> X >> Y; if(X==Y){ p(0); return 0; } if(Y==0){ p(1); return 0; } if(X==0){ p(2); return 0; } if(X == -Y){ p(3); return 0; } else{ p(-1); } return 0; }