the integers from 1 to 1000 are printed on a list. how many times does the digit 8 appear?