X = '' for i in input(): if ord(i) < 91: X += chr(ord(i) + 32) else: X += chr(ord(i) - 32) print(X)