#yukicoder390A X=input() if X[-1]=='0': X=X[:-1]+'1' else: X=X[:-1]+'0' print(X)