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