xp,yp = gets.split(" ").map(&:to_i) kei = (xp**2 + yp**2)**(1/2.0) ans = 0 while ans <= (kei * 2) do ans += 1 end puts ans