s = list(input()) ans = [] for i in range(len(s)): if i != len(s)-1: ans.append(s[i]) else: if s[i] == "0": ans.append("1") else: ans.append("0") print("".join(ans))