#include #include using namespace std; int main(){ int xp,yp; cin >> xp >> yp; cout << int(sqrt(xp * xp + yp * yp) * 2 + 1) << endl; }