## https://yukicoder.me/problems/no/758 MOD = 10 ** 9 + 7 def main(): N = input() c = 0 for i in range(len(N)): if N[i] == "1": c += 1 if c == 2: print("Yes") return if c == 1: print("No") return x = N.split("0") x = [y for y in x if len(y) > 0] if len(x) == 1: print("Yes") else: print("No") if __name__ == "__main__": main()