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