#include #include int main(void){ int x,y,i,r=0; scanf("%d %d",&x,&y); r=2*sqrt(x*x+y*y)+1; printf("%d",r); return 0; }