#include #include int main(void){ int Xp,Yp; double h; scanf("%d",&Xp); scanf("%d",&Yp); h=sqrt(Xp*Xp+Yp*Yp); h=2*h+1; printf("%d\n",(int)h); return 0; }