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 double pi = 3.14159265358979323846;
const double E = 2.7182818284590452354;
const struct _ {
  ios_base::Init i;
  int s;
  _() : s(ios_base::xalloc()) {
    srand(time(NULL));
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
  }
} _;
inline ostream& operator<<(ostream& o, const struct _&) {
  o.iword(_.s) = 0;
  return o << '\n';
}
template <class T>
inline ostream& operator,(ostream& o, const T& x) {
  if (o.iword(_.s))
    o << ' ';
  else
    o.iword(_.s) = 1;
  return o << x;
}
template <>
inline ostream& operator, <struct _>(ostream& o, const struct _&) {
  return o << _;
}
template <class I>
inline void in(I A, I B) {
  while (A != B) {
    cin >> *A;
    ++A;
  }
}
template <class I>
inline void out(I A, I B, char D = ' ') {
  if (A != B) {
    cout << *A;
    while (++A != B) {
      cout << D << *A;
    }
  }
  cout << _;
}
template <class T>
inline T sq(const T& X) {
  return X * X;
}
template <class T>
inline T power(T X, int Y) {
  assert(Y >= 0 && !(X == 0 && Y == 0));
  T R = (Y & 1) ? X : 1;
  while (Y >>= 1) {
    X *= X;
    if (Y & 1) R *= X;
  }
  return R;
}
int arr[105][105];
void g(int n, int m, const function<int&(int, int)>& f) {
  bool odd = n % 2 == 1;
  for (int j = 0; j < m; j++) {
    for (int i = 0; i < n; i++) {
      int& x = f(i, j);
      if (i == n - 1)
        x *= odd ? (n + 1) / 2 : (n + 6) / 2;
      else if (i == 0)
        x *= odd ? 2 : 3;
      else
        x *= 1;
    }
  }
}
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    fill(arr[i], arr[i] + m, 1);
  }
  g(n, m, [](int x, int y) -> int& { return arr[x][y]; });
  g(m, n, [](int x, int y) -> int& { return arr[y][x]; });
  for (int i = 0; i < n; i++) {
    out(arr[i], arr[i] + m);
  }
}