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 = 1000000007;
int n, k, f[401][210][16], g[16][10][16], h[5][10][2][2][16], num[16];
int main() {
  scanf("%d%d", &n, &k);
  for (int a = 0; a < 16; a++)
    for (int b = 0; b < 16; b++) {
      static int col[4];
      col[0] = col[1] = col[2] = col[3] = 0;
      int cnt = 0;
      for (int c = 0; c < 4; c++) col[c] = ((a >> c) & 1), cnt += col[c];
      bool able = true;
      for (int c = 0; c < 4; c++)
        if ((b >> c) & 1) {
          if (col[c] || col[(c + 1) % 4]) able = false;
          col[c] = col[(c + 1) % 4] = true;
          cnt++;
        }
      if (!able) continue;
      int news = 0;
      for (int c = 3; c >= 0; c--) news = (news << 1) | col[c];
      f[0][cnt][news]++;
    }
  for (int a = 0; a < 16; a++) {
    int b = a, c = 0;
    while (b) c += b & 1, b >>= 1;
    num[a] = c;
  }
  for (int a = 0; a < (1 << 4); a++) {
    memset(h, 0, sizeof(h));
    h[1][0][0][0][a] = h[1][1][1][0][a | 1] = h[1][2][1][1][a | 1] =
        h[1][1][0][1][a | 1] = 1;
    if (!(a & 1)) h[1][1][1][1][a | 1] = 1;
    for (int b = 1; b < 4; b++)
      for (int use = 0; use <= 8; use++)
        for (int last = 0; last <= 1; last++)
          for (int first = 0; first <= 1; first++)
            for (int s = 0; s < 16; s++)
              if (h[b][use][last][first][s])
                for (int use1 = 0; use1 < 2; use1++)
                  for (int use2 = 0; use2 < 2; use2++) {
                    if (!use1 && !use2 && !((s >> b) & 1)) {
                      h[b + 1][use + 1][1][first][s | (1 << b)] +=
                          h[b][use][last][first][s];
                      if (h[b + 1][use + 1][1][first][s | (1 << b)] >= mo)
                        h[b + 1][use + 1][1][first][s | (1 << b)] -= mo;
                    };
                    {
                      h[b + 1][use + use1 + use2][use2][first]
                       [s | ((use1 | use2) << b)] += h[b][use][last][first][s];
                      if (h[b + 1][use + use1 + use2][use2][first]
                           [s | ((use1 | use2) << b)] >= mo)
                        h[b + 1][use + use1 + use2][use2][first]
                         [s | ((use1 | use2) << b)] -= mo;
                    };
                    if (!last && !use1) {
                      h[b + 1][use + 1 + use2][use2][first]
                       [s | (1 << b) | (1 << (b - 1))] +=
                          h[b][use][last][first][s];
                      if (h[b + 1][use + 1 + use2][use2][first]
                           [s | (1 << b) | (1 << (b - 1))] >= mo)
                        h[b + 1][use + 1 + use2][use2][first]
                         [s | (1 << b) | (1 << (b - 1))] -= mo;
                    };
                    if (!use1 && !use2 && !((s >> b) & 1) &&
                        !((s >> (b - 1)) & 1)) {
                      h[b + 1][use + 1][1][first | (b == 1)]
                       [s | (1 << b) | (1 << (b - 1))] +=
                          h[b][use][last][first][s];
                      if (h[b + 1][use + 1][1][first | (b == 1)]
                           [s | (1 << b) | (1 << (b - 1))] >= mo)
                        h[b + 1][use + 1][1][first | (b == 1)]
                         [s | (1 << b) | (1 << (b - 1))] -= mo;
                    };
                  }
    for (int use = 0; use <= 8; use++)
      for (int s = 0; s < 16; s++) {
        h[4][use + 1][1][1][s | 9] += h[4][use][0][0][s];
        if (h[4][use + 1][1][1][s | 9] >= mo) h[4][use + 1][1][1][s | 9] -= mo;
      };
    for (int use = 0; use <= 8; use++)
      for (int s = 0; s < 16; s++)
        if (!(s & 1) && !(s & 8)) {
          h[4][use + 1][1][1][s | 9] += h[4][use][0][0][s];
          if (h[4][use + 1][1][1][s | 9] >= mo)
            h[4][use + 1][1][1][s | 9] -= mo;
        };
    for (int use = 0; use <= 8; use++)
      for (int last = 0; last <= 1; last++)
        for (int first = 0; first <= 1; first++)
          for (int s = 0; s < 16; s++) {
            g[a][use][s] += h[4][use][last][first][s];
            if (g[a][use][s] >= mo) g[a][use][s] -= mo;
          };
  }
  for (int a = 0; a < 2 * n; a++)
    for (int b = 0; b <= k; b++)
      for (int c = 0; c < 16; c++)
        if (f[a][b][c])
          if (a & 1) {
            for (int delta = 0; delta <= 8; delta++)
              for (int s = 0; s < 16; s++) {
                f[a + 1][b + delta][s] +=
                    (long long)f[a][b][c] * g[c][delta][s] % mo;
                if (f[a + 1][b + delta][s] >= mo) f[a + 1][b + delta][s] -= mo;
              };
          } else {
            for (int d = 0; d < 16; d++) {
              f[a + 1][b + num[d]][c | d] += f[a][b][c];
              if (f[a + 1][b + num[d]][c | d] >= mo)
                f[a + 1][b + num[d]][c | d] -= mo;
            };
          }
  int ans = 0;
  for (int a = 0; a < 16; a++) {
    ans += f[2 * n][k][a];
    if (ans >= mo) ans -= mo;
  };
  for (int a = 1; a <= k; a++) ans = (long long)ans * a % mo;
  printf("%d\n", ans);
  return 0;
}