#include #include using namespace std; int main(int argc, const char * argv[]) { int x, y; cin >> x >> y; std::cout << floor(sqrt(x * x + y * y) * 2) + 1 << endl; return 0; }