main = interact (unwords . zipWith (maybe id (const reverse)) (cycle [Nothing, Just Nothing]) . words) >> putStrLn "."