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