x,y = gets.split.map(&:to_i) gets gets.split.map(&:to_i).each_cons(2).each do |a, b| if 1r * a * y / x > b puts "NO" exit end end puts "YES"