#include #include int main() { int xp, yp; scanf("%d %d", &xp, &yp); printf("%d\n", (int)(hypot(xp, yp)*2+1)); return 0; }