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;
using ll = long long;
const int N = 300, M = 1e9 + 7;
int dp[N][4][N];
int f[4][5] = {1, 1, 0, 0, 0, 1, 3, 1, 0, 0, 1, 5, 5, 1, 0, 1, 8, 16, 8, 1};
int x[4] = {3, 4, 5, 4}, y[4] = {0, 1, 2, 4};
inline void update(int &x, ll y) { x = (x + y) % M; }
int g[N * 2];
int main() {
  int n, k;
  scanf("%d %d", &n, &k);
  ll prod = 1;
  for (int i = 1; i <= k; i++) prod = prod * i % M;
  for (int i = 0; i < 4; i++)
    for (int j = 0; j <= i + 1; j++) dp[0][i][j] = f[i][j];
  for (int i = 1; i <= n; i++) {
    for (int j = 0; j < 4; j++) {
      int x = ::x[j], y = ::y[j];
      for (int t = 0; t <= k; t++) dp[i][j][t] = dp[i - 1][j][t];
      for (int u = 1; u <= x; u++)
        for (int t = k; t; t--) update(dp[i][j][t], dp[i][j][t - 1]);
      for (int u = 1; u <= y; u++) {
        for (int t = k; t >= 2; t--)
          update(dp[i][j][t], dp[i][j][t - 1] * 3ll + dp[i][j][t - 2]);
        update(dp[i][j][1], dp[i][j][0] * 3ll);
      }
    }
    for (int x = 0; x <= k; x++) g[x] = 0;
    for (int x = 0; x <= k; x++)
      for (int y = 0; y <= k; y++)
        update(g[x + y], (ll)dp[i][0][x] * dp[i][0][y]);
    for (int t = k; t; t--) {
      update(dp[i][3][t], dp[i][2][t - 1] * 4ll);
      update(dp[i][3][t], 4ll * dp[i][1][t - 1]);
      if (t >= 2) {
        update(dp[i][3][t], g[t - 2] * 2ll);
        update(dp[i][3][t], 4ll * dp[i][1][t - 2]);
        update(dp[i][3][t], 8ll * dp[i][0][t - 2]);
        if (t >= 3) update(dp[i][3][t], 4ll * dp[i][0][t - 3]);
      }
    }
    update(dp[i][3][2], 2);
    update(dp[i][3][3], 4);
    update(dp[i][3][4], 1);
    for (int t = k; t; t--) {
      update(dp[i][2][t], dp[i][1][t - 1] * 2ll);
      update(dp[i][2][t], g[t - 1]);
      update(dp[i][2][t], dp[i][0][t - 1] * 2ll);
      if (t >= 2) update(dp[i][2][t], dp[i][0][t - 2] * 3ll);
    }
    update(dp[i][2][2], 2);
    update(dp[i][2][3], 1);
    for (int t = k; t; t--) update(dp[i][1][t], dp[i][0][t - 1] * 2ll);
    update(dp[i][1][1], 1);
    update(dp[i][1][2], 1);
    update(dp[i][0][1], 1);
  }
  printf("%lld\n", prod * dp[n][3][k] % M);
}