Mr Wong received his first-month bonus. He deposited half of the amount in the bank. He used 1 10 of the remaining bonus to buy a ring for his wife, and then he bought his friends 8 mangoes, worth $10 each. In the end, he had $100 left in his wallet. What was Mr Wong's first-month bonus?