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