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