You are given two integers $$$n$$$ and $$$m$$$. Find the number of ways to fill an $$$n\times m$$$ grid with the numbers $$$1, 2, \ldots, n \times m$$$, using each number exactly once, such that the following conditions are satisfied:
Count the number of valid fillings, modulo $$$998\,244\,353$$$.
The only line contains two integers $$$n$$$ and $$$m$$$ ($$$1 \le n, m \le 2025$$$).
Output a single integer — the number of valid fillings, modulo $$$998\,244\,353$$$.
1 1
1
2 1
2
2 2
24
3 2
80
2024 2025
831665454
| Name |
|---|


