def check(string):
    for char in string:
        if char not in "01":
            return "No"
    return "Yes"