#include #define PI 3.14159265359 #define NIL -1 using namespace std; const int64_t MOD = 1e9 + 7; int main() { int X, Y; cin >> X >> Y; double n = sqrt(X * X + Y * Y); //cout << n << endl; n *= 2.0; int ans = (int)n; ans++; cout << ans << endl; }