You are given a sequence of $$$n$$$ non-negative integers $$$a_1, a_2, \ldots, a_n$$$ and $$$q$$$ operations. The $$$t$$$-th operation consists of the following steps in order:
After each operation, find the number of positive elements in the sequence. After all operations, also find the final sequence.
There is only one test case in each test file.
The first line contains two integers $$$n$$$ and $$$q$$$ ($$$1 \le n, q \le 2 \cdot 10^5$$$).
The second line contains $$$n$$$ integers $$$a_1, a_2, \ldots, a_n$$$ ($$$0 \le a_i \le 10^9$$$), the initial sequence.
Each of the next $$$q$$$ lines contains two integers $$$x_t$$$ and $$$v_t$$$ ($$$0 \le x_t \le n$$$, $$$0 \le v_t \le 10^9$$$), describing the $$$t$$$-th operation. It is guaranteed that $$$v_t = 0$$$ if $$$x_t = 0$$$.
After each operation, print a single integer — the number of positive elements in the sequence.
After all operations, print one line containing $$$n$$$ integers — the final sequence.
4 52 0 5 12 33 20 01 42 0
3 2 2 2 1 3 0 0 0
After the first step of the first operation, the sequence is $$$[1, 0, 4, 0]$$$. Then the second element becomes $$$\max(0, 3) = 3$$$, so the sequence is $$$[1, 3, 4, 0]$$$ and it has $$$3$$$ positive elements.
The first step is always performed before the second step of the same operation.