failpwd = input() pwd = [x.upper() if x.islower() else x.lower() for x in failpwd] print("".join(pwd))