Given are an integer N and arrays S, T, U, and V, each of length N. Construct an N×N matrix a that satisfy the following conditions:
However, there may be cases where no matrix satisfies the conditions.
Input is given from Standard Input in the following format:
N S1 S2 ... SN T1 T2 ... TN U1 U2 ... UN V1 V2 ... VN
If there exists a matrix that satisfies the conditions, print one such matrix in the following format:
a1,1 ... a1,N : aN,1 ... aN,N
Note that any matrix satisfying the conditions is accepted.
If no matrix satisfies the conditions, print −1.
In Sample Input 1, we need to find a matrix such that: