If only I could think Linearly...

No attempts yetTime limit1sMemory limit128 MB

Problem

Any true algorithm junkie knows that a linear system with an input vector xx and an output vector yy can be described by a single matrix MM. Column jj of MM holds the outputs you get when input jj is one and every other input is zero. Because the system is linear, the output for an arbitrary combination of inputs is a linear combination of the columns of MM.

y=Mxy = Mx

You are given the matrix MM and the output vector yy. Find the input xx that produces that output. MM is an m×nm \times n matrix, yy is a column vector of size mm, and the xx you are looking for is a column vector of size nn with exactly three non-zero entries. Written out for m=3m = 3 and n=4n = 4, the task is to find the xx that satisfies this equation.

[y1y2y3]=[m11m12m13m14m21m22m23m24m31m32m33m34][x1x2x3x4]\begin{bmatrix} y_1 \\ y_2 \\ y_3 \end{bmatrix} = \begin{bmatrix} m_{11} & m_{12} & m_{13} & m_{14} \\ m_{21} & m_{22} & m_{23} & m_{24} \\ m_{31} & m_{32} & m_{33} & m_{34} \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \\ x_3 \\ x_4 \end{bmatrix}

You also have to handle the case where the number of inputs nn is larger than the number of outputs mm. The system is then underdetermined and several different xx produce the same yy, but only one xx has exactly three non-zero entries.

Input

The first line contains the number of rows mm of the matrix MM, and the second line contains the number of columns nn. Each of the next mm lines contains one row of MM as nn real numbers separated by whitespace. Each of the following mm lines contains one entry of the output vector yy.

3m303 \le m \le 30, 3n303 \le n \le 30, and an xx satisfying the condition always exists and is unique. One input holds a single test case.

Output

Print the indices of the three non-zero entries in increasing order, one per line, in this format.

input i = v

ii is an integer between 1 and nn, and vv is the value of that input rounded to two decimal places. No answer value sits close enough to a rounding boundary for the rounding direction to be in doubt.

Hint

Multiplying MM by the correct xx reproduces every entry of yy to within a relative error of 0.01%. The non-zero entries can sit in only (n3)\binom{n}{3} places, so you can solve the least squares problem for each candidate triple of columns and keep the triple whose residual is close to zero. The three indices have to match the correct answer exactly.