#include #include using namespace std; int main(int argc, char* argv[]) { int X,Y; cin>>X>>Y; double R2=(double)(X*X+Y*Y); double R=sqrt(R2); int D; if (R==(int)R){ D=2*(int)R+1; }else{ D=2*(int)(R+0.9); } cout<