Problem: Levko loves tables that consist of n rows and n columns very much. He especially loves beautiful tables. A table is beautiful to Levko if the sum of elements in each row and column of the table equals k.

Unfortunately, he doesn't know any such table. Your task is to help him to find at least one of them. 

Input

The single line contains two integers, n and k (1 ≤ n ≤ 100, 1 ≤ k ≤ 1000).

Output

Print any beautiful table. Levko doesn't like too big numbers, so all elements of the table mustn't exceed 1000 in their absolute value.

If there are multiple suitable tables, you are allowed to print any of them.

Examples

Input

2 4


Output

1 3
3 1


Input

4 7


Output

2 1 0 4
4 0 2 1
1 3 3 0
0 3 2 2

Note

In the first sample the sum in the first row is 1 + 3 = 4, in the second row — 3 + 1 = 4, in the first column — 1 + 3 = 4 and in the second column — 3 + 1 = 4. There are other beautiful tables for this sample.

In the second sample the sum of elements in each row and each column equals 7. Besides, there are other tables that meet the statement requirements.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
long long mini, minj, maxi, maxj, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o,
    p, q, r, s, t, u, v, w, x, y, z, sum, aa[1007], bb[1007];
char c1, c2, c3, c4, c5, c6, c7, c8, c9, c0;
string s1, s2, s3, s4, s5, s6, s7, s8, s9, s0;
long double d1, d2, d3, d4, d5, d6, d7, d8, d9, d0;
set<char> sc1, sc2;
set<long long> sl1, sl2;
map<long long, long long> mll1, mll2, mll3;
pair<int, int> pr[107];
int main() {
  cin >> n >> k;
  a = n;
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= n; j++) {
      if (j != a)
        cout << 0 << " ";
      else if (j == a)
        cout << k << " ";
    }
    a--;
    cout << endl;
  }
  return 0;
}