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