Problem7561-- [CSES Problem Set] Counting Tilings

7561: [CSES Problem Set] Counting Tilings

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

Your task is to count the number of ways you can fill an $n \times m$ grid using $1 \times 2$ and $2 \times 1$ tiles.

Input

The only input line has two integers $n$ and $m$.

Output

Print one integer: the number of ways modulo $10^9+7$.

Constraints

$1≤n≤10$
$1 \le m \le 1000$

Sample 1 Input

4 7

Sample 1 Output

781

HINT

相同题目:CSES 2181

Source/Category