#include using namespace std; int main() { int x,y; cin>>x>>y; if(x==0&&y==0)cout<<0<