S = str(input()) for i in range(0,len(S) - 1): if S[i] == S[i].upper(): S[i] == S[i].lower() continue else: S[i] == S[i].upper() print(S)