x,y,h=gets.split.map &:to_i x*=1000 y*=1000 a=[x,y] p (0..1/0.0).find{|i| not a.sort![0]