Today, Mr.Frog gets two integers N and K, he wants to construct a matrix M that satisfies the following conditions:
1. Matrix M consists of N rows and N columns. The element at ith row and jth column in the matrix M is Mi,j.
2. The product of arbitrary rows in matrix M is K.
3. The product of arbitrary columns in matrix M is K.
4. The product of the main diagonal line is K.
5. The product of the sub diagonal line is K.
6. Arbitrary element in the matrix M is an integer.
7. For arbitrary i ∈ [1,n], j ∈ [1,n] should be satisfied |Mi,j| < |K|.
The ith row consists of Mi,1, Mi,2, Mi,3, Mi,4 and Mi,5.
The jth column consists of M1,j, M2,j, M3,j, M4,j and M5,j.
However, Mr.Frog will go to Hong Kong today. He asks you for help.
The first line contains an integer T, where T is the number of test cases. T test cases follow.For each test case, the only line contains two integers N and K.• 1 ≤ T ≤ 10.
• 1 ≤ N ≤ 103.
• −109 ≤ K ≤ 109.
For each test case, output one line containing “Case #x:”, where x is the test case number (starting from
1). If there is no solution, print “IMPOSSIBLE” in the next line; otherwise, print N lines with N integers.
If there are many multiple optimal answers, output any one of them.