#include #include using namespace std; int main(){ int Xp, Yp; cin >> Xp >> Yp; cout << (int) hypot(Xp * 2, Yp * 2) + 1 << endl; }