S = input().swapcase() print(S)