n=input()
if n.count('1')==2:a='Yes'
elif '01' not in n and n.count('1')!=1:a='Yes'
else:a='No'
print(a)