#include //--------------------------- using namespace std; //--------------------------- #define REP(i,n) for(int i = 0; i < (n); i++) #define P(x) cout << (x) << "\n" #define MOD 1e9+7 #define PI acos(-1.0) //--------------------------- int main(){ std::ios::sync_with_stdio(false); std::cin.tie(0); int x,y;cin >> x >> y; int a = floor(2 * sqrt(x*x + y*y) + 1); P(a); return 0; }