After the guys submitted their first task, the question arose — which task should be solved next?
Begimai, who had experience in such competitions, suggested looking at the page with the "Results".
This page shows how many tasks each team has solved — and how many attempts the team made on each task:
Begimai explained that additional information about the difficulty of tasks can be extracted from this statistics:
The guys decided to collect a small statistics for each task:
The first line contains two integers $$$n$$$ and $$$p$$$ $$$(1 \le n, p \le 100)$$$ — the number of teams and the number of tasks in the results table.
The $$$i$$$-th of the following $$$n$$$ lines contains information about the results of the $$$i$$$-th team — $$$p$$$ pairs of values $$$R_{i, j}$$$, separated by spaces:
In the $$$j$$$-th of the $$$p$$$ lines, output three integers $$$S_j$$$, $$$T_j$$$, $$$F_j$$$ separated by spaces:
2 3+ 0 + 3 - 5+ 1 - 0 - 12
2 2 1 1 1 3 0 2 17
First test example
In the results table, there are $$$2$$$ teams and $$$3$$$ tasks:
In total, it turns out that
| Name |
|---|


