password = input() p = password.swapcase() print(p)