words = str(input()) print(words.swapcase())