How many times will the digit 7 be written when listing the integers from 1 to 1000?(A) 110(B) 111(C) 271(D) 300(E) 304