#include using namespace std; int main(void) { int xp, yp; cin >> xp >> yp; for (int i = 0; ; i++) { if (i * i <= 4 * (xp * xp + yp * yp)) continue; cout << i << endl; break; } return 0; }