A matrix can be regarded as ordered sequence of row vectors.

Let’s define the length of vector, and 2 kinds of operations for matrix.
Given one m x n matrix A, and K operations.
Your task is to find the longest row vector v in A after K operations.
If there’re more than one longest row vector, print the one with smaller row index.
Three numbers m, n, K on the first line.
For each of following m lines, there’s a row vector ri of matrix A.
Every row vector consists of n numbers.
The next K lines contains one operation per line.
Each operation is one of “0 i j” or “1 i j”, denoting the operation switch (i,j) and add (i,j) respectively.
It’s guaranteed that:
Print the longest row vector after several operations in one line.
If there’re more than one longest row vector, print the one with smaller row index.
Note that there’s “\n” on the end of lines.
Explaination for Sample
