#include #include using namespace std; int main() { int xp, yp; int ans; cin >> xp >> yp; ans = 1 + static_cast(2 * (sqrt(xp*xp + yp*yp))); cout << ans << endl; return 0; }