ls = input() print(ls[0:len(ls)-1], end="") if ls[len(ls)-1] == "0": print("1") else: print("0")