s=input() if s.count("1")==2 or (s.count("0")==2 and s[-2]==s[-1]=="0"):print("Yes") else:print("No")