defmodule Main do def main do IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1) |> solve() |> IO.puts() end def solve(list), do: list |> Enum.sort() |> sequential?() def sequential?([_]), do: "Yes" def sequential?([x | [y | _] = tail]) when x + 1 == y, do: sequential?(tail) def sequential?(_), do: "No" end