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