Package for this problem was not updated by the problem writer or Codeforces administration after we’ve upgraded the judging servers. To adjust the time limit constraint, solution execution time will be multiplied by 2. For example, if your solution works for 400 ms on judging servers, then value 800 ms will be displayed and used to determine the verdict.

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

The problem statement has recently been changed. View the changes.

×
E. Vasily the Bear and Painting Square

time limit per test

2 secondsmemory limit per test

256 megabytesinput

standard inputoutput

standard outputVasily 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, 2^{n}), (0, - 2^{n}), (2^{n}, 0), ( - 2^{n}, 0). Then for each *i* = 1, 2, ..., *n*, the bear drew two squares. The first square has the following vertex coordinates: (2^{i}, 0), ( - 2^{i}, 0), (0, - 2^{i}), (0, 2^{i}). The second square has the following vertex coordinates: ( - 2^{i - 1}, - 2^{i - 1}), ( - 2^{i - 1}, 2^{i - 1}), (2^{i - 1}, - 2^{i - 1}), (2^{i - 1}, 2^{i - 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*.

The sample of the final picture at *n* = 0

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:

- 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. - 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 (10^{9} + 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 (10^{9} + 7).

Examples

Input

0 0

Output

1

Input

0 1

Output

8

Input

0 2

Output

32

Input

1 1

Output

32

Codeforces (c) Copyright 2010-2021 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: May/14/2021 13:31:01 (i1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|