You are given three integers $$$n$$$, $$$k$$$ and $$$m$$$. Additionally, you have $$$m$$$ integer triples ($$$l_i, r_i, x_i$$$).
Let's define the value of an integer array $$$a$$$ as follows:
The first line contains three integers $$$n, k$$$ and $$$m$$$ ($$$1 \le n, k \le 100$$$; $$$0 \le m \le 5000$$$).
Then $$$m$$$ lines follow. The $$$i$$$-th of them contains three integers $$$l_i, r_i$$$ and $$$x_i$$$ ($$$1 \le l_i \le r_i \le n$$$; $$$0 \le x \lt 2^{30}$$$).
Print $$$n$$$ integers — the array consisting of $$$n$$$ integers from $$$0$$$ to $$$2^{30} - 1$$$ with the maximum value.
3 2 43 3 11 2 31 1 11 3 3
3 3 1073741820
2 2 0
0 1073741823
| Name |
|---|


