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 = 1 << 29;
const double EPS = 1e-8;
const double PI = acos(-1);
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
ostream &operator<<(ostream &os, const vector<T> &t) {
  os << "[";
  for (__typeof((t).begin()) it = (t).begin(); it != (t).end(); ++it) {
    if (it != t.begin()) os << ",";
    os << *it;
  }
  os << "]";
  return os;
}
template <class T>
ostream &operator<<(ostream &os, const set<T> &t) {
  os << "{";
  for (__typeof((t).begin()) it = (t).begin(); it != (t).end(); ++it) {
    if (it != t.begin()) os << ",";
    os << *it;
  }
  os << "}";
  return os;
}
template <class S, class T>
ostream &operator<<(ostream &os, const pair<S, T> &t) {
  return os << "(" << t.first << "," << t.second << ")";
}
template <int N, class Tuple>
void out(ostream &, const Tuple &) {}
template <int N, class Tuple, class, class... Ts>
void out(ostream &os, const Tuple &t) {
  if (N) os << ",";
  os << get<N>(t);
  out<N + 1, Tuple, Ts...>(os, t);
}
template <class... Ts>
ostream &operator<<(ostream &os, const tuple<Ts...> &t) {
  os << "(";
  out<0, tuple<Ts...>, Ts...>(os, t);
  os << ")";
  return os;
}
template <class T>
void output(T *a, int n) {
  for (int i = 0; i < (int)(n); ++i) {
    if (i) cout << ",";
    cout << a[i];
  }
  cout << endl;
}
template <class T>
void output(T *a, int n, int m) {
  for (int i = 0; i < (int)(n); ++i) output(a[i], m);
}
int h = 2, w = 3;
int a[100][100];
bool issq(int x) {
  double s = sqrt(x);
  return abs(s - round(s)) < EPS;
}
void solve(int y, int x) {
  if (x >= w) {
    int sum = 0;
    for (int j = 0; j < (int)(w); ++j) sum += a[y][j] * a[y][j];
    if (!issq(sum)) return;
    solve(y + 1, 0);
    return;
  }
  if (y == h) {
    for (int j = 0; j < (int)(w); ++j) {
      int sum = 0;
      for (int i = 0; i < (int)(h); ++i) {
        sum += a[i][j] * a[i][j];
      }
      if (!issq(sum)) return;
    }
    output(a, h, w);
    cout << endl;
    return;
  }
  for (int i = 1; i < 10; ++i) {
    a[y][x] = i;
    solve(y, x + 1);
  }
}
vector<int> func(int n) {
  vector<int> res(n, 1);
  if (n == 1) return res;
  if (n == 2) return vector<int>({3, 4});
  int t = n - 1;
  if (n & 1) {
    res[n - 2] = 2;
    t = n - 2 + 4;
  }
  res[n - 1] = (t - 1) / 2;
  return res;
}
int main() {
  int h, w;
  while (cin >> h >> w) {
    vector<int> vh = func(h);
    vector<int> vw = func(w);
    for (int i = 0; i < (int)(h); ++i) {
      for (int j = 0; j < (int)(w); ++j) {
        if (j) cout << " ";
        cout << (long long)vh[i] * vw[j];
      }
      cout << endl;
    }
  }
}