defmodule Main do def main do 1..3 |> Enum.map(fn _ -> IO.read(:line) |> String.trim() |> String.to_integer() end) |> solve |> IO.puts() end defp solve([a, b, c]) do Enum.zip([[:A, :B, :C], [a, b, c]]) |> List.keysort(1) |> Enum.reverse |> Enum.map(fn {n, _} -> n |> Atom.to_string end) |> Enum.join("\n") end end