S = input() N = int(S, base=2) print(bin(N ^ 1)[2:].zfill(len(S)))