import Data.Char main = getLine >>= putStrLn . map (\x -> if isUpper x then toLower x else toUpper x)