defmodule Main do def main do IO.gets("") |> String.trim |> to_charlist |> Enum.with_index(1) |> Enum.map(fn {key, value} -> rem(key - value + 65, 26) + 65 end) |> IO.puts end end