#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include using namespace std; #define lli long long int #define us(n) (n) > 0 ? n : (n) * -1 int main() { int x, y; double kyori; cin >> x >> y; kyori = sqrt(pow(us(x), 2) + pow(us(y), 2)) - 0.0000000001; cout << fixed << setprecision(0) << kyori * 2 + 1<< endl; return 0; }