defmodule Main do
  def main do
    a = IO.read(:line) |> String.trim |> String.to_charlist
    b = IO.read(:line) |> String.trim |> String.to_charlist
    c = IO.read(:line) |> String.trim |> String.to_charlist
    [head | tail] = b
    ans = a |> first ++ tail |> first
    ans = ans ++ c |> last
    IO.puts(ans)
  end
end
