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