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;
int debug;
int f[255][255][16], h[16][16][13], G[5];
int n, L, P, now, i, j, k, c, S, T, fac, ans, id;
int succ[16][1005], num[16][1005], cnt[16];
const int bit[16] = {0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4};
inline void up(int &x) {
  if (x >= P) x -= P;
}
inline int in(int id, int S) { return (S >> id) & 1; }
void DFS(int x, int T, int ch, int U) {
  if (x < 4) {
    for (G[x] = 0; G[x] < 8; G[x]++)
      DFS(x + 1, T | ((1 << x) * (G[x] > 0)), ch + bit[G[x]], 0);
    return;
  }
  if (x == 4) {
    for (int U = 0; U < 16; U++) {
      if (in(0, U) && (in(2, G[0]) * in(0, G[1])) == 0) continue;
      if (in(1, U) && (in(2, G[1]) * in(0, G[2])) == 0) continue;
      if (in(2, U) && (in(2, G[2]) * in(0, G[3])) == 0) continue;
      if (in(3, U) && (in(2, G[3]) * in(0, G[0])) == 0) continue;
      DFS(x + 1, T, ch - bit[U], U);
    }
    return;
  }
  for (int U = 0; U < 16; U++)
    if (!(U & T)) h[S][U | T][ch + bit[U]]++;
  for (int x = 0; x < 4; x++)
    for (int y = 0; y < 4; y++)
      if ((x + 1) % 4 == y)
        if (in(x, T) + in(y, T) == 0)
          for (int U = 0; U < 16; U++)
            if (in(x, U) + in(y, U) == 0 && !(U & T))
              h[S][U | T | (1 << x) | (1 << y)][ch + 1 + bit[U]]++;
  if (T == 0) h[S][15][2] += 2;
}
int main() {
  scanf("%d%d", &n, &L);
  P = 1E9 + 7;
  for (S = 0; S < 16; S++) {
    DFS(0, S, 0, 0);
    for (T = 0; T < 16; T++)
      for (c = 0; c <= 12; c++)
        if (h[S][T][c]) succ[S][++cnt[S]] = T, num[S][cnt[S]] = c;
  }
  f[0][0][0]++;
  for (int x = 0; x < 4; x++) f[0][1][1 << x]++;
  for (int x = 0; x < 4; x++)
    for (int y = 0; y < 4; y++)
      if ((x + 1) % 4 == y) f[0][1][(1 << x) | (1 << y)]++;
  for (int x = 0; x < 4; x++)
    for (int y = 0; y < 4; y++)
      if (x < y) f[0][2][(1 << x) | (1 << y)]++;
  for (int x = 0; x < 4; x++)
    for (int y = 0; y < 4; y++)
      if ((x + 1) % 4 == y)
        for (int z = 0; z < 4; z++)
          if (z != x && z != y) f[0][2][(1 << x) + (1 << y) + (1 << z)]++;
  f[0][2][15] += 2;
  for (int x = 0; x < 4; x++) f[0][3][(1 << x) ^ 15]++;
  f[0][3][15] += 4;
  f[0][4][15]++;
  for (i = 0; i < n; i++)
    for (k = 0; k <= min(L, 12 * i + 4); k++)
      for (S = 0; S < 16; S++)
        if (now = f[i][k][S])
          for (id = 1; id <= cnt[S]; id++)
            T = succ[S][id], c = num[S][id],
            up(f[i + 1][k + c][T] += 1ll * h[S][T][c] * now % P);
  for (S = 0; S < 16; S++) up(ans += f[n][L][S]);
  for (fac = i = 1; i <= L; i++) fac = 1ll * fac * i % P;
  printf("%d\n", 1ll * ans * fac % P);
}