S = str(input()) Correct="" for i in S: if i.isupper(): a = i.lower() Correct+=a if i.islower(): b=i.upper() Correct+=b print(Correct)