N = input().split("0") ans = 0 for n in N: if len(n) > 1: ans += 2 else: ans += len(n) print("Yes" if ans == 2 else "No")