print("".join([x.swapcase() for x in input()]))