#include #include #include using namespace std; # define M_PI 3.14159265358979323846 int main() { int xp, yp; scanf("%d %d", &xp, &yp); printf("%d", (int)(sqrt(xp * xp + yp * yp) * 2) + 1); return 0; }