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