S=input() for x in S: if ord(x)<65+26: print(chr(ord(x)+32),end="") else: print(chr(ord(x)-32),end="") print()