#include #include #include #include #include #include #include #include #include #include using namespace std; #define FOR(i,s,e) for (int i = int(s); i < int(e); i++) #define FORIT(i,c) for (typeof((c).begin()) i = (c).begin(); i != (c).end(); i++) #define ISEQ(c) (c).begin(), (c).end() int SURP = 1000000007; int main(){ int x,y; cin >> x >> y; double p = sqrt(x*x + y * y) * 2; int ans = int(p) + 1; cout << ans << endl; return 0; }