import Control.Monad
import Data.Maybe (fromJust)
import Data.List
import Data.Char

solve :: [String] -> String
solve [] = ""
solve ((x:_):as) = x:(solve as)

main :: IO ()
main = do
    s <- words <$> getLine
    putStrLn $ solve s
