There is an

maze with two of the corners of the board having coordinates (1, 1) and (n, m).
Once you are located in the cell (x, y), you can move to the four adjacent cells (x - 1, y), (x + 1, y), (x, y - 1) and (x, y + 1) in one second, and you must keep moving, which means that you cannot stay in one cell. Also, you cannot move outside the maze.
Now you start at (a, b), and you should keep moving for t seconds. You are asked to figure out the number of possible moving trails.
Here a moving trail is the sequence of the moving strategy during your moving. For example, if you start at (1, 1) and at the following 5 seconds you move to (2, 1), (3, 1), (3, 2), (4, 2) and (3, 2) step by step, the moving trail is (1, 0), (1, 0), (0, 1), (1, 0), and (-1, 0).
Since the answer may be too large, you only need output the result modulo

.