Instructions: The task is to generate the correct answer for a given math problem.
Input: Problem: there are 9 baskets numbered from 1 to 9 and filled with apples . 10 children are asked to pick apples one by one from each basket such that the number of apples picked by each child from each basket is equal to the number marked on the basket . if there were 1000 apples in total and the baskets were filled in such a way that none of the basket became empty in the process , how many apples were left in the end ?
Output:
550