#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include //#include "util.h" using namespace std; typedef long long lint; typedef pair Pii; #define PI 3.14159265358979323846 #define EPS 1e-6 int main() { double X, Y, r; cin >> X >> Y; r = sqrt(X * X + Y * Y); cout << (int)floor(2 * r + EPS) + 1 << endl; return 0; }