Problem Description
Given an array of integers of length , initially all elements are equal to . There are queries. Each query has the form: , , . Perform the following actions:
- If , assign the value to the -th element of the array.
- If , increase the value of the -th element by .
Output the resulting array after executing all queries.
Input Format
In the first line of output data, three integers are written: , , and , where , and .
In the following lines, three integers , , and are written for each query, where , , and .
Output Format
Output the resulting array.
Examples
Example 1
Input
3 2 4 1 1 15 1 3 3 2 1 5 2 3 2
Output
20 2 5