r=reverse main=interact$unlines.map(unwords.r.words).r.lines