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