defmodule Main do def main do 1..2 |> Enum.map(fn _ -> IO.read(:line) |> String.trim() |> String.split(".") |> Enum.map(&String.to_integer/1) end) |> solve |> IO.puts() end def solve([[a, b, c], [x, y, z]]) do cond do a > x || (a == x && (b > y || (b == y && c >= z))) -> "YES" true -> "NO" end end end