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