On dividing a number by 999, the quotient is 377 and the remainder is 105. The number is