------
## 最终结论
```python
def check(s):
    for char in s:
        if char not in '01':
            return "No"
    return "Yes"

# Test cases
assert check("01010101010") == "Yes"
assert check("name0") == "No"
assert check("101") == "Yes"
```