module RoseGarden def solve(n, s, b, a) sb = s * b h = a[0] + sb (1...n).each do |i| if h >= a[i] h = [h, a[i] + sb].max else return :No end end :Yes end module_function :solve end n, s, b = gets.chomp.split(/\s+/).map(&:to_i) ah = gets.chomp.split(/\s+/).map(&:to_i) puts RoseGarden.solve(n, s, b, ah)