#include using namespace std; int main(){ long x,y,l=0,r=1<<30,mid; cin>>x>>y; while(l>1; if(mid*mid<=4*(x*x+y*y))l=mid+1; else r=mid; } cout<