Step 6 done. Numbers greater than 1000 are ignored.