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