Two arrays#11725

Two arrays

1 second
128 megabytes
Medium

You are given two positive integers and . Find the number of pairs of arrays that satisfy the following conditions:

Since the result may be very large, output it modulo 10^9 + 7.

Input

Two positive integers and (1 \le n \le 1000,\ 1 \le m \le 10).

Output

Print a single integer: the number of pairs of arrays and that satisfy the conditions above, modulo 10^9 + 7.

Examples

Example

Input
2 2
Output
5

Example 1

Loading
Loading

Example 2

Loading
Loading

Note

In the first sample test, there are suitable pairs:

  • a = [1,1],\ b = [2,2];

  • a = [1,2],\ b = [2,2];

  • a = [2,2],\ b = [2,2];

  • a = [1,1],\ b = [2,1];

  • a = [1,1],\ b = [1,1].