n = input() t = n.count("1") if t == 1: print("No") elif t == 2: print("Yes") else: if n[:t].count("1") == t: print("Yes") else: print("No")