Problem: Vasily the bear has two favorite integers n and k and a pencil. Besides, he's got k jars with different water color paints. All jars are numbered in some manner from 1 to k, inclusive. The jar number i contains the paint of the i-th color. 

Initially the bear took a pencil and drew four segments on the coordinate plane. All of them end at point (0, 0). They begin at: (0, 2n), (0, - 2n), (2n, 0), ( - 2n, 0). Then for each i = 1, 2, ..., n, the bear drew two squares. The first square has the following vertex coordinates: (2i, 0), ( - 2i, 0), (0, - 2i), (0, 2i). The second square has the following vertex coordinates: ( - 2i - 1, - 2i - 1), ( - 2i - 1, 2i - 1), (2i - 1, - 2i - 1), (2i - 1, 2i - 1). After that, the bear drew another square: (1, 0), ( - 1, 0), (0, - 1), (0, 1). All points mentioned above form the set of points A.

<image>

The sample of the final picture at n = 0

<image>

The sample of the final picture at n = 2

The bear decided to paint the resulting picture in k moves. The i-th move consists of the following stages: 

  1. The bear chooses 3 distinct points in set А so that any pair of the chosen points has a segment on the picture between them. The chosen points and segments mark the area that mustn't contain any previously painted points. 
  2. The bear paints the area bounded by the chosen points and segments the i-th color. 



Note that after the k-th move some parts of the picture can stay unpainted.

The bear asked you to calculate, how many distinct ways there are to paint his picture. A way to paint the picture is a sequence of three-element sets of points he chose on each step. Two sequences are considered distinct if there is such number i (1 ≤ i ≤ k), that the i-th members of these sequences do not coincide as sets. As the sought number can be rather large, you only need to calculate the remainder after dividing it by number 1000000007 (109 + 7).

Input

The first line contains two integers n and k, separated by a space (0 ≤ n, k ≤ 200).

Output

Print exactly one integer — the answer to the problem modulo 1000000007 (109 + 7).

Examples

Input

0 0


Output

1


Input

0 1


Output

8


Input

0 2


Output

32


Input

1 1


Output

32

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int mo = 1e9 + 7;
int n, K, M, dp[2][201][16], he[55], binom[55][55], tr[55][55][201], kua[55],
    way[55][5];
struct Edge {
  int v, k, con, nxt;
} Ed[5000];
inline void inc(int &x, int y) {
  if ((x += y) >= mo) x -= mo;
}
inline void Add(int u, int v, int k, int con) {
  Ed[++M] = (Edge){v, k, con, he[u]};
  he[u] = M;
}
int main() {
  scanf("%d%d", &n, &K);
  for (int _r = 22, i = 0; i <= _r; ++i) {
    *binom[i] = 1;
    for (int _r = i, j = 1; j <= _r; ++j)
      binom[i][j] = (binom[i - 1][j - 1] + binom[i - 1][j]) % mo;
  }
  int lim = 1 << 4;
  --lim;
  kua[0] = 4;
  kua[1] = kua[2] = kua[4] = kua[8] = 2;
  kua[3] = kua[6] = kua[9] = kua[12] = 1;
  way[0][0] = 1;
  way[1][1] = way[2][1] = way[4][1] = way[8][1] = 1;
  way[5][2] = way[10][2] = 1;
  way[3][1] = way[6][1] = way[9][1] = way[12][1] = 1;
  way[3][2] = way[6][2] = way[9][2] = way[12][2] = 1;
  way[7][3] = way[11][3] = way[13][3] = way[14][3] = 1;
  way[7][2] = way[11][2] = way[13][2] = way[14][2] = 2;
  way[15][4] = 1;
  way[15][2] = 2;
  way[15][3] = 4;
  for (int _r = lim, i = 0; i <= _r; ++i)
    for (int _r = lim, j = 0; j <= _r; ++j)
      if ((j & i) == 0) {
        int k = i | j;
        for (int _r = kua[k], p = 0; p <= _r; ++p) {
          int _ = (4 - (__builtin_popcount(k))) * 3 - p * 2;
          for (int _r = _, q = 0; q <= _r; ++q)
            for (int _r = 4, cn = 0; cn <= _r; ++cn)
              if (way[j][cn])
                inc(tr[i][k][cn + p + q], 1ll * binom[kua[k]][p] * binom[_][q] %
                                              mo * way[j][cn] % mo);
        }
      }
  for (int _r = lim, i = 0; i <= _r; ++i)
    for (int _l = 0, k = 12; k >= _l; --k)
      for (int _r = lim, j = 0; j <= _r; ++j)
        if (tr[i][j][k]) Add(i, j, k, tr[i][j][k]);
  dp[n + 1 & 1][0][0] = 1;
  for (int _l = 2, i = n + 1; i >= _l; --i) {
    int p = i & 1, q = p ^ 1;
    memset(dp[q], 0, sizeof dp[q]);
    for (int _r = K, k = 0; k <= _r; ++k)
      for (int _r = lim, mask = 0; mask <= _r; ++mask)
        if (dp[p][k][mask])
          for (int e = he[mask]; e; e = Ed[e].nxt) {
            int kk = k + Ed[e].k;
            if (kk > K) break;
            inc(dp[q][kk][Ed[e].v], 1ll * dp[p][k][mask] * Ed[e].con % mo);
          }
  }
  for (int _l = 0, i = lim; i >= _l; --i)
    for (int _r = lim, j = 0; j <= _r; ++j)
      if (j > i && (i & j) == i)
        for (int _r = 4, k = 0; k <= _r; ++k) inc(way[j][k], way[i][k]);
  int res = 0;
  for (int _r = K, k = max(K - 4, 0); k <= _r; ++k)
    for (int _r = lim, mask = 0; mask <= _r; ++mask)
      if (dp[1][k][mask])
        inc(res, 1ll * dp[1][k][mask] * way[lim - mask][K - k] % mo);
  for (int _r = K, i = 2; i <= _r; ++i) res = 1ll * res * i % mo;
  printf("%d\n", res % mo);
}