xp = gets.to_i yp = gets.to_i kei = (xp**2 + yp**2)**(1/2.0) ans = 0 while ans <= (kei * 2) do ans += 1 end puts ans