updated input cset

changed from manually listing digits to using the intersection of &digits
and '_'
Added check for failed solve