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 N = 405, P = 1000000007;
using ll = long long;
int n, kk, dp[N][N][16], g[16][10][16], h[5][10][2][2][16], clr[N];
inline void add(int &a, int b) { a = (a + b) % P; }
int main() {
  ios::sync_with_stdio(false);
  cin >> n >> kk;
  n *= 2;
  ll ans = 0, fac = 1;
  for (int i = 2; i <= kk; i++) fac = fac * i % P;
  for (int i1 = 0; i1 < 16; i1++) {
    memset(h, 0, sizeof(h));
    h[1][0][0][0][i1] = h[1][1][1][0][i1 | 1] = h[1][2][1][1][i1 | 1] =
        h[1][1][0][1][i1 | 1] = 1;
    if (!(i1 & 1)) h[1][1][1][1][i1 | 1] = 1;
    for (int i = 1; i < 4; i++)
      for (int j = 0; j <= 8; j++)
        for (int lst = 0; lst < 2; lst++)
          for (int fs = 0; fs < 2; fs++)
            for (int i2 = 0; i2 < 16; i2++)
              if (h[i][j][lst][fs][i2])
                for (int t1 = 0; t1 < 2; t1++)
                  for (int t2 = 0; t2 < 2; t2++) {
                    int cur = h[i][j][lst][fs][i2];
                    if (!t1 && !t2 && !(i2 & (1 << i)))
                      add(h[i + 1][j + 1][1][fs][i2 | (1 << i)], cur);
                    add(h[i + 1][j + t1 + t2][t2][fs][i2 | ((t1 | t2) << i)],
                        cur);
                    if (!lst && !t1)
                      add(h[i + 1][j + 1 + t2][t2][fs]
                           [i2 | (1 << i) | (1 << (i - 1))],
                          cur);
                    if (!t1 && !t2 && !(i2 & (1 << i)) &&
                        !(i2 & (1 << (i - 1))))
                      add(h[i + 1][j + 1][1][fs | (i == 1)]
                           [i2 | (1 << i) | (1 << (i - 1))],
                          cur);
                  }
    for (int i = 0; i <= 8; i++)
      for (int j = 0; j < 16; j++)
        add(h[4][i + 1][1][1][j | 9], h[4][i][0][0][j]);
    for (int i = 0; i <= 8; i++)
      for (int j = 0; j < 16; j++)
        if (!(j & 1) && !(j & 8))
          add(h[4][i + 1][1][1][j | 9], h[4][i][0][0][j]);
    for (int i = 0; i <= 8; i++)
      for (int j = 0; j < 2; j++)
        for (int k = 0; k < 2; k++)
          for (int l = 0; l < 16; l++) add(g[i1][i][l], h[4][i][j][k][l]);
  }
  for (int i1 = 0; i1 < 16; i1++)
    for (int i2 = 0; i2 < 16; i2++) {
      clr[0] = clr[1] = clr[2] = clr[3] = 0;
      int cnt = 0;
      for (int i = 0; i < 4; i++) clr[i] = ((i1 >> i) & 1), cnt += clr[i];
      bool ok = 1;
      for (int i = 0; i < 4; i++)
        if (i2 & (1 << i)) {
          if (clr[i] || clr[(i + 1) % 4]) ok = 0;
          clr[i] = clr[(i + 1) % 4] = 1;
          ++cnt;
        }
      if (!ok) continue;
      int sum = 0;
      for (int i = 3; i >= 0; --i) sum = (sum << 1) | clr[i];
      ++dp[0][cnt][sum];
    }
  for (int i = 0; i <= n; i++)
    for (int j = 0; j <= kk; j++)
      for (int i1 = 0; i1 < 16; i1++)
        if (dp[i][j][i1]) {
          if (i & 1)
            for (int k = 0; k <= 8; k++)
              for (int i2 = 0; i2 < 16; i2++)
                add(dp[i + 1][j + k][i2], ll(dp[i][j][i1]) * g[i1][k][i2] % P);
          else
            for (int k = 0; k < 16; k++)
              add(dp[i + 1][j + __builtin_popcount(k)][i1 | k], dp[i][j][i1]);
        }
  for (int i = 0; i < 16; i++) ans = (ans + dp[n][kk][i]) % P;
  cout << ans * fac % P << endl;
  return 0;
}