a = input() b=a.swapcase() print(b)