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