S = input() ls = len(S) S = int(S, 2) print(format(S ^ 1, "b").zfill(ls))