x=input();print(x[:-1]+{"0":"1","1":"0"}[x[-1]])