print("Yes" if sum(min(len(i), 2) for i in input().split("0")) == 2 else "No")