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