#cPSlOCK S = input() S2 = "" for c in S: if c.islower(): S2 += c.upper() else: S2 += c.lower() print(S2)