{"raw_statement":[{"iden":"problem statement","content":"There are $N$ customers in a restaurant. Each customer is numbered $1$ through $N$.  \nA sushi chef carried out $Q$ operations for customers.  \n  \nThe $i$-th operation is follows:  \n\n1.  The sushi chef chooses a customer whose number of dishes of sushi eaten is minimum, in customer $1, 2, 3, \\\\dots, a_i$. If there are multiple customers who are minimum numbers of dishes, he selects the minimum-numbered customers.\n2.  He puts a dish of sushi on the selected seats.\n3.  A customer who have selected for professional eats this sushi.\n4.  Repeat 1-3, $b_i$ times.\n\n  \nPlease calculate the number of dishes of sushi that have been eaten by each customer."}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}