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