n = input(); a = list(n) while a[-1] == "0": a.pop() print("Yes" if n.count("1") == 2 or len(a) > 1 and "0" not in a else "No")