ls = int(input(), 2) a = 0b1 print(bin(ls ^ a)[2:], end="")