I have 131070 lines of short input.
The structure is following:
First line has 3 numbers: n, m, z.
Then there are n