12. (5 points) Person A and Person B start working on the same day. The company stipulates: A works for 3 days and then rests for 1 day, B works for 7 days and then rests for 3 consecutive days. In the first 1000 days, the number of days on which A and B rest on the same day is $\qquad$ days.