defmodule Main do def input, do: IO.read(:line) |> String.trim def ii, do: input() |> String.to_integer def li, do: input() |> String.split |> Enum.map(&String.to_integer/1) def yn(b), do: IO.puts (if b, do: "Yes", else: "No") def is_mma(a, a, b), do: a != b def is_mma(_, _, _), do: false def main do [_n, s, b] = li() h = li() h |> Enum.chunk_every(2, 1, :discard) |> Enum.any?(fn [x, y] -> x+s*b < y end) |> then(fn b -> not b end) |> yn() end end