def check_line(line):
    """Check that:
      * a line has nine values
      * each val has length 1
      * each val is either digital or "-"
      * digital values are between 1 and 9
    """
    vals = line.split()
    if not len(vals) == 9:
        return False

    for val in vals:
        if not len(val) == 1:
            return False
        if not (val.isdigit() or val == "-"):
            return False
        if val.isdigit() and not 1 <= int(val) <= 9:
            return False

    return True