defmodule Main do def main do [a,b] = IO.stream(:stdio, :line) |> Enum.take(2) |> Enum.map(&String.trim/1) |> Enum.map(&String.codepoints/1) |> Enum.map(&Enum.sort/1) (a == b) |> out |> IO.puts end def out(true) do "YES" end def out(false) do "NO" end end