s = input() if s[-1] == 0: s[-1] = 1 print(s) else: s[-1] = 0 print(s)