### Input
- A single line containing two positive integers $n, m$.
### Output
- Print the number of ways to place the knights satisfying the condition modulo $10^9+7$.
### Constraints
- $1 \le n \le 6$.
- $1 \le m \le 100$.
### Example
Input:
```
3 3
```
Output:
```
145
```