#include using namespace std; int main() { int x, y; cin >> x >> y; if(x==0 && y==0){ cout << 0 << endl; } else{ if(x==0 || y==0){ cout << 1 << endl; } else{ if(x>0 && y>0){ if(x==y){ cout<< 1 <0 && y<0){ if(x==0-y){ cout<< 1 <0){ if(0-x==y){ cout<< 1 <