from collections import Counter N=input().strip() cnt = Counter(N) print("Yes" if cnt["1"]==2 or sum(map(int,N[cnt["1"]:]))==0 and cnt["1"]>1 else "No")