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