Problem: While resting on the ship after the "Russian Code Cup" a boy named Misha invented an interesting game. He promised to give his quadrocopter to whoever will be the first one to make a rectangular table of size n × m, consisting of positive integers such that the sum of the squares of numbers for each row and each column was also a square.

Since checking the correctness of the table manually is difficult, Misha asks you to make each number in the table to not exceed 108.

Input

The first line contains two integers n and m (1 ≤ n, m ≤ 100) — the size of the table. 

Output

Print the table that meets the condition: n lines containing m integers, separated by spaces. If there are multiple possible answers, you are allowed to print anyone. It is guaranteed that there exists at least one correct answer.

Examples

Input

1 1


Output

1

Input

1 2


Output

3 4

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
int x[105], y[105];
int ans[105][105];
int main() {
  x[0] = 1;
  y[0] = 1;
  x[1] = 3;
  y[1] = 4;
  x[2] = 2;
  y[2] = 1;
  x[3] = 1;
  y[3] = 1;
  x[4] = 2;
  y[4] = 3;
  x[5] = 1;
  y[5] = 2;
  x[6] = 2;
  y[6] = 1;
  x[7] = 1;
  y[7] = 3;
  x[8] = 1;
  y[8] = 1;
  x[9] = 1;
  y[9] = 4;
  x[10] = 2;
  y[10] = 3;
  x[11] = 1;
  y[11] = 5;
  x[12] = 1;
  y[12] = 2;
  x[13] = 1;
  y[13] = 6;
  x[14] = 2;
  y[14] = 5;
  x[15] = 1;
  y[15] = 1;
  x[16] = 1;
  y[16] = 3;
  x[17] = 1;
  y[17] = 8;
  x[18] = 2;
  y[18] = 3;
  x[19] = 1;
  y[19] = 9;
  x[20] = 1;
  y[20] = 4;
  x[21] = 1;
  y[21] = 2;
  x[22] = 2;
  y[22] = 9;
  x[23] = 1;
  y[23] = 11;
  x[24] = 1;
  y[24] = 1;
  x[25] = 1;
  y[25] = 12;
  x[26] = 2;
  y[26] = 11;
  x[27] = 1;
  y[27] = 3;
  x[28] = 1;
  y[28] = 6;
  x[29] = 1;
  y[29] = 14;
  x[30] = 2;
  y[30] = 1;
  x[31] = 1;
  y[31] = 15;
  x[32] = 1;
  y[32] = 2;
  x[33] = 1;
  y[33] = 4;
  x[34] = 2;
  y[34] = 15;
  x[35] = 1;
  y[35] = 1;
  x[36] = 1;
  y[36] = 8;
  x[37] = 1;
  y[37] = 18;
  x[38] = 2;
  y[38] = 17;
  x[39] = 1;
  y[39] = 5;
  x[40] = 1;
  y[40] = 3;
  x[41] = 1;
  y[41] = 20;
  x[42] = 2;
  y[42] = 1;
  x[43] = 1;
  y[43] = 21;
  x[44] = 1;
  y[44] = 10;
  x[45] = 1;
  y[45] = 2;
  x[46] = 2;
  y[46] = 21;
  x[47] = 1;
  y[47] = 23;
  x[48] = 1;
  y[48] = 1;
  x[49] = 1;
  y[49] = 24;
  x[50] = 2;
  y[50] = 5;
  x[51] = 1;
  y[51] = 7;
  x[52] = 1;
  y[52] = 12;
  x[53] = 1;
  y[53] = 26;
  x[54] = 2;
  y[54] = 3;
  x[55] = 1;
  y[55] = 3;
  x[56] = 1;
  y[56] = 5;
  x[57] = 1;
  y[57] = 8;
  x[58] = 2;
  y[58] = 27;
  x[59] = 1;
  y[59] = 29;
  x[60] = 1;
  y[60] = 2;
  x[61] = 1;
  y[61] = 30;
  x[62] = 2;
  y[62] = 29;
  x[63] = 1;
  y[63] = 1;
  x[64] = 1;
  y[64] = 6;
  x[65] = 1;
  y[65] = 4;
  x[66] = 2;
  y[66] = 5;
  x[67] = 1;
  y[67] = 33;
  x[68] = 1;
  y[68] = 16;
  x[69] = 1;
  y[69] = 10;
  x[70] = 2;
  y[70] = 3;
  x[71] = 1;
  y[71] = 35;
  x[72] = 1;
  y[72] = 3;
  x[73] = 1;
  y[73] = 36;
  x[74] = 2;
  y[74] = 35;
  x[75] = 1;
  y[75] = 5;
  x[76] = 1;
  y[76] = 18;
  x[77] = 1;
  y[77] = 2;
  x[78] = 2;
  y[78] = 7;
  x[79] = 1;
  y[79] = 39;
  x[80] = 1;
  y[80] = 1;
  x[81] = 1;
  y[81] = 12;
  x[82] = 2;
  y[82] = 39;
  x[83] = 1;
  y[83] = 41;
  x[84] = 1;
  y[84] = 4;
  x[85] = 1;
  y[85] = 6;
  x[86] = 2;
  y[86] = 41;
  x[87] = 1;
  y[87] = 13;
  x[88] = 1;
  y[88] = 9;
  x[89] = 1;
  y[89] = 44;
  x[90] = 2;
  y[90] = 1;
  x[91] = 1;
  y[91] = 3;
  x[92] = 1;
  y[92] = 22;
  x[93] = 1;
  y[93] = 14;
  x[94] = 2;
  y[94] = 45;
  x[95] = 1;
  y[95] = 7;
  x[96] = 1;
  y[96] = 2;
  x[97] = 1;
  y[97] = 48;
  x[98] = 2;
  y[98] = 7;
  x[99] = 1;
  y[99] = 1;
  x[100] = 1;
  y[100] = 24;
  int n, m;
  scanf("%d%d", &n, &m);
  for (int i = 1; i < n; i++)
    for (int j = 1; j < m; j++) ans[i][j] = x[n - 1] * x[m - 1];
  for (int i = 1; i < n; i++) ans[i][m] = x[n - 1] * y[m - 1];
  for (int j = 1; j < m; j++) ans[n][j] = y[n - 1] * x[m - 1];
  ans[n][m] = y[n - 1] * y[m - 1];
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) printf("%d ", ans[i][j]);
    puts("");
  }
  return 0;
}