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;
long long int n, k;
long long int edge[16][16][15];
vector<pair<int, int> > edge0[16];
long long int r[2][16][205];
int Count(int z) {
  int ans = 0;
  for (int i = 0; i < 15; i++) {
    if (z & (1 << i)) ans++;
  }
  return ans;
}
void BuildEdges() {
  int newmask;
  int newmask2;
  for (int i = 0; i < 16; i++) {
    for (int j = 0; j < 16; j++) {
      for (int z = 0; z < 15; z++) {
        edge[i][j][z] = 0;
      }
    }
  }
  for (int mask = 0; mask < 16; mask++) {
    for (int q = 15 - mask;; q = (q - 1) & (15 - mask)) {
      newmask = mask | q;
      for (int qq = 0; qq < 15; qq++) {
        if ((qq & 1) && (qq & 2)) continue;
        if ((qq & 2) && (qq & 4)) continue;
        if ((qq & 4) && (qq & 8)) continue;
        if ((qq & 8) && (qq & 1)) continue;
        if ((qq & 1) && ((newmask & 1) || (newmask & 2))) continue;
        if ((qq & 2) && ((newmask & 2) || (newmask & 4))) continue;
        if ((qq & 4) && ((newmask & 4) || (newmask & 8))) continue;
        if ((qq & 8) && ((newmask & 8) || (newmask & 1))) continue;
        newmask2 = newmask;
        if (qq & 1) newmask2 += 3;
        if (qq & 2) newmask2 += 6;
        if (qq & 4) newmask2 += 12;
        if (qq & 8) newmask2 += 9;
        int cnt = Count(q) + Count(qq);
        edge0[mask].push_back(pair<int, int>(cnt, newmask2));
        for (int inter = (15 - newmask2);;
             inter = (inter - 1) & (15 - newmask2)) {
          for (int ei = 0; ei < 256; ei++) {
            if ((ei & 1) && (newmask2 & 1)) continue;
            if ((ei & 2) && (newmask2 & 1)) continue;
            if ((ei & 4) && (newmask2 & 2)) continue;
            if ((ei & 8) && (newmask2 & 2)) continue;
            if ((ei & 16) && (newmask2 & 4)) continue;
            if ((ei & 32) && (newmask2 & 4)) continue;
            if ((ei & 64) && (newmask2 & 8)) continue;
            if ((ei & 128) && (newmask2 & 8)) continue;
            for (int ei2 = 0; ei2 < 16; ei2++) {
              if ((ei2 & 1) && ((newmask2 & 1) || (newmask2 & 8))) continue;
              if ((ei2 & 2) && ((newmask2 & 1) || (newmask2 & 2))) continue;
              if ((ei2 & 4) && ((newmask2 & 2) || (newmask2 & 4))) continue;
              if ((ei2 & 8) && ((newmask2 & 4) || (newmask2 & 8))) continue;
              if ((ei2 & 1) && ((ei & 1) || (ei & (1 << 7)))) continue;
              if ((ei2 & 2) && ((ei & (1 << 1)) || (ei & (1 << 2)))) continue;
              if ((ei2 & 4) && ((ei & (1 << 3)) || (ei & (1 << 4)))) continue;
              if ((ei2 & 8) && ((ei & (1 << 5)) || (ei & (1 << 6)))) continue;
              int cnt =
                  Count(q) + Count(qq) + Count(inter) + Count(ei) + Count(ei2);
              edge[mask][newmask2][cnt]++;
            }
          }
          if (inter == 0) break;
        }
      }
      if (q == 0) break;
    }
  }
}
long long int GetAns(long long int a, long long int k) {
  for (long long int i = 1; i <= k; i++) {
    a *= i;
    a %= 1000000007LL;
  }
  return a;
}
int main() {
  BuildEdges();
  cin >> n >> k;
  for (int mask = 0; mask < 16; mask++) {
    for (int i = 0; i <= k; i++) {
      r[0][mask][i] = 0;
      for (int j = 0; j < edge0[mask].size(); j++) {
        if (edge0[mask][j].first == i) r[0][mask][i]++;
      }
    }
  }
  int yk = 0;
  if (n == 0) {
    cout << GetAns(r[0][0][k], k) << endl;
    return 0;
  }
  for (int i = 0; i < n; i++) {
    for (int mask = 0; mask < 16; mask++) {
      for (int j = 0; j <= k; j++) {
        r[1 - yk][mask][j] = 0;
      }
      for (int newmask = 0; newmask < 16; newmask++) {
        if (!(newmask & 1) && (mask & 1)) continue;
        if (!(newmask & 2) && (mask & 2)) continue;
        if (!(newmask & 4) && (mask & 4)) continue;
        if (!(newmask & 8) && (mask & 8)) continue;
        for (int z = 0; z < 15; z++) {
          for (int j = z; j <= k; j++) {
            r[1 - yk][mask][j] = r[1 - yk][mask][j] +
                                 r[yk][newmask][j - z] * edge[mask][newmask][z];
            r[1 - yk][mask][j] %= 1000000007LL;
          }
        }
      }
    }
    yk = 1 - yk;
  }
  cout << GetAns(r[yk][0][k], k) << endl;
  return 0;
}