#K56652. Box Distribution

    ID: 30246 Type: Default 1000ms 256MiB

Box Distribution

Box Distribution

You are given a list of pastry orders. Each order consists of a pastry type (a string) and the number of pastries ordered (an integer).

Your task is to determine how many boxes are needed for each order. Each box can hold exactly 10 pastries. Thus, the number of boxes needed for an order is given by the ceiling of \(\frac{\text{count}}{10}\). Orders with 0 pastries should not be output.

Print the result for each valid order in the same order as they appear in the input. For each order, output the pastry type and the number of boxes required, separated by a space.

inputFormat

The first line contains an integer N representing the number of orders. Each of the following N lines contains a pastry type (a string) and an integer representing the number of pastries ordered, separated by a space.

outputFormat

For each order where the number of pastries is positive, print a line containing the pastry type and the calculated number of boxes (using the ceiling function (\lceil\frac{count}{10}\rceil)), separated by a space. Maintain the same order as the input. If no orders are valid (or N = 0), output nothing.## sample

3
croissant 25
muffin 14
bagel 9
croissant 3

muffin 2 bagel 1

</p>