n=int(input())+1 k=str(n) m=len(k) for i in range(m): if i==0 and k[i]=="1":continue if k[i]=="0":continue else: print("No") exit() print("Yes")