def c(char): if char.isupper(): return char.lower() elif char.islower(): return char.upper() else: return char char = input() print(c(char))