-- From http://learnyouahaskell.com/input-and-output import Data.Char main = interact (unwords . map reverse . words)