for i in input(): if ord(i)>=97: print(chr(65+ord(i)-97),end="") else: print(chr(97+ord(i)-65),end="")