S = input() for i in range(len(S)-1): print(S[i], end="") if S[-1] == "0": print("1", end="") else: print("0", end="")