Vasya is a Greencode wildlife preservation society proponent. One day he found an empty field nobody owned, divided it into n × m squares and decided to plant a forest there. Vasya will plant nm trees of all different heights from 1 to nm. For his forest to look more natural he wants any two trees growing in the side neighbouring squares to have the absolute value of difference in heights to be strictly more than 1. Help Vasya: make the plan of the forest planting for which this condition is fulfilled.

Input

The first line contains two space-separated integers n and m (1 ≤ n, m ≤ 100) — the number of rows and columns on Vasya's field

Output

If there's no solution, print -1. Otherwise, print n lines containing m numbers each — the trees' planting plan. In every square of the plan the height of a tree that should be planted on this square should be written. If there are several solutions to that problem, print any of them.

Examples

Input

2 3


Output

3 6 2
5 1 4


Input

2 1


Output

-1
#include <bits/stdc++.h>
using namespace std;
const int INF = (1 << 30) - 1;
const int DIRX[] = {-1, 0, 0, 1, -1, -1, 1, 1},
          DIRY[] = {0, -1, 1, 0, -1, 1, -1, 1};
const double ERR = 1e-9, PI = (2 * acos(0.0));
template <class T>
inline T MIN(T a, T b) {
  return ((a < b) ? a : b);
}
template <class T>
inline T MAX(T a, T b) {
  return ((b < a) ? a : b);
}
template <class T>
inline void checkMIN(T& a, T b) {
  if (b < a) a = b;
}
template <class T>
inline void checkMAX(T& a, T b) {
  if (a < b) a = b;
}
template <class T>
inline T sqr(T x) {
  return (x * x);
}
template <class T>
inline T gcd(T a, T b) {
  if (!b)
    return a;
  else
    return gcd(b, a % b);
}
template <class T>
void BubbleSort(vector<T>& VT) {
  for (int i = (int)VT.size(); i > 0; i--)
    for (int j = 1; j < i; j++)
      if (VT[j] < VT[j - 1]) swap(VT[j], VT[j - 1]);
}
template <class T>
T fastPow(T Base, T Power) {
  T Result = (T)1;
  while (Power > 0) {
    if (Power & (T)1) Result *= Base;
    Power >>= 1;
    Base *= Base;
  }
  return Result;
}
template <class T>
T fastPow(T Base, T Power, T Mod) {
  T Result = (T)1;
  while (Power > 0) {
    if (Power & (T)1) Result = (Result * Base) % Mod;
    Power >>= 1;
    Base = (Base * Base) % Mod;
  }
  return Result;
}
int compareDouble(double x, double y) {
  double d = x - y;
  if (d > ERR) return 1;
  if (d < -ERR) return -1;
  return 0;
}
int compareDouble(double x, double y, double err) {
  double d = x - y;
  if (d > err) return 1;
  if (d < -err) return -1;
  return 0;
}
int mat[102][102];
bool valid(int x, int y) {
  if (x == 1 && (2 <= y && y <= 3)) return false;
  if (x == 2 && y == 2) return false;
  return true;
}
int main() {
  int i, j, k, r, c;
  cin >> r >> c;
  if (valid(r, c) && valid(c, r)) {
    k = 0;
    for (i = 0; i < r; i++)
      for (j = (i + 1) % 2; j < c; j += 2) mat[i][j] = ++k;
    for (i = 0; i < r; i++)
      for (j = i % 2; j < c; j += 2) mat[i][j] = ++k;
    for (i = 0; i < r; cout << endl, i++)
      for (j = 0; j < c; cout << ' ', j++) cout << mat[i][j];
  } else
    cout << -1 << endl;
  return 0;
}
