import re s=input() if (s.count("1")>1 and re.search(r"^1+0*$",s)) or s.count("1")==2: print("Yes") else: print("No")