#include using namespace std; int main(){ double x, y; cin >> x >> y; double dis = sqrt(x * x + y * y); int ans = (int) (dis*2) + 1; cout << ans << endl; return 0; }