The number of times the digit \( 3 \) will be written when listing the integers from \( 1 \) to \( 1000 \) is ____________.