#include using namespace std; int main() { int x, y; cin >> x >> y; double r_2 = x*x + y*y; double ans = 1; while (true){ if (ans*ans / 4 <= r_2)ans++; else { cout << ans << endl; break; } } return 0; }