print("YNeos"[sum(min(len(i),2)for i in input().split("0"))!=2::2])