import Data.Char main = getLine >>= putStrLn . foldr (\x acc -> (if isLower x then toUpper x else toLower x) : acc) ""