open System

let read() = Console.ReadLine().ToCharArray()

let l1 = read()
let l2 = read()
let l3 = read()

l1.[0]::l2.[1]::l3.[2]::[]
|> List.toArray
|> String       
|> printfn "%s"                                                  