#define _USE_MATH_DEFINES #include #include using namespace std; int main() { double X, Y; double r,dir; cin >> X >> Y; r = hypot(X, Y); cout << (int)(2 * r) + 1 << endl; return 0; }