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