#include #include int main(void) { short xp,yp; double r; scanf("%hd %hd",&xp,&yp); r = sqrt(xp*xp + yp*yp); printf("%d\n",(int)((r+0.5)*2)); return 0; }