open Batteries
open Char
let arr = String.explode (read_line ())
let brr = String.explode (read_line ())
let crr = String.explode (read_line ())
let ans = escaped (List.nth arr 0) ^ escaped (List.nth brr 1) ^ escaped (List.nth crr 2)
let () = print_endline ans