def swap_case(string): return string.swapcase() string=input() result=swap_case(string) print(result)