defmodule Main do def main do IO.gets("") |> String.trim() |> String.reverse() |> String.to_charlist() |> Enum.map(fn c -> cond do [c] |> to_string == "<" -> ">" true -> "<" end end) |> Enum.join() |> IO.puts() end end