import Data.Function
import Data.List

f :: Int -> [Int] -> [Int]
f n xs = ((++) `on ` (replicate (div n 2))) a b 
  where [a,b] = take 2 $ drop (div n 2 - 1) xs

main = do
  n <- readLn
  xs <- (map read . words) <$> getLine
  mapM_ print $ f n xs