#include using namespace std; using ll = long long; #define rep(i, s, e) for (int i = (int)s; i < (int)e; i++) int main() { cin.tie(nullptr); int x, y; cin >> x >> y; int d = x*x + y*y; int R = 1; while (true) { if (d * 4 < R * R) { cout << R << '\n'; return 0; } R++; } }