#include using namespace std; typedef long long ll; int main() { int x,y; cin>>x>>y; if (x==y) cout<<0; else if (y==0) cout<<1; else if (x==0) cout<<2; else if (x==-y) cout<<3; else cout<<-1; cout<