#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { double xp, yp; cin >> xp >> yp; double r2 = xp*xp + yp*yp; /* int r = 0; for (;;) { if (r > 2 * sqrt(r2)) break; r++; } cout << r << endl; */ cout << (int)(sqrt(r2) * 2 + 1) << endl; return 0; }