main :: IO () main = interact $ unwords . (\[a, b] -> [b, a]) . words