module Main where

import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    [a, _, _] <- getLine
    [_, b, _] <- getLine
    [_, _, c] <- getLine
    putStrLn [a, b, c]