Out of every 1000 packages received by a merchant, three are damaged. In a day, the merchant received 600 damaged packages. How many undamaged packages did the merchant receive? ( with explanation )