first = input() split_first = first.split() userInputPass = split_first[0] print(userInputPass.swapcase())