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;
const int INF = 0x3f3f3f3f;
const double eps = 1e-8;
const double PI = acos(-1.0);
const int MAXN = 1e5 + 5;
const int MOD = 1e9 + 7;
int sgn(double x) {
  if (fabs(x) < eps) return 0;
  if (x < 0)
    return -1;
  else
    return 1;
}
long long pw(long long a, long long n, long long mod) {
  long long ret = 1;
  while (n) {
    if (n & 1) ret = ret * a % mod;
    a = a * a % mod;
    n >>= 1;
  }
  return ret;
}
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
int n, m, a, b, c, d;
bool ok() {
  int s1 = a * a * (n - 1) + c * c;
  int s2 = a * a * (m - 1) + b * b;
  int s3 = b * b * (n - 1) + d * d;
  int s4 = c * c * (m - 1) + d * d;
  if ((int)sqrt(s1) * sqrt(s1) == s1 && (int)sqrt(s2) * sqrt(s2) == s2 &&
      (int)sqrt(s3) * sqrt(s3) == s3 && (int)sqrt(s4) * sqrt(s4) == s4)
    return true;
  return false;
}
int main() {
  scanf("%d%d", &n, &m);
  while (1) {
    a = rand() % 100 + 1;
    b = rand() % 100 + 1;
    c = rand() % 100 + 1;
    d = rand() % 100 + 1;
    if (ok()) break;
  }
  for (int i = 1; i < n; i++) {
    for (int j = 1; j < m; j++) printf("%d ", a);
    printf("%d\n", b);
  }
  for (int j = 1; j < m; j++) printf("%d ", c);
  printf("%d\n", d);
}