{-# OPTIONS_GHC -O2 #-} import Codec.Binary.UTF8.Light main :: IO () main = putUTF8 . unlines . reverse . fmap flipUTF8 . lines =<< getContents