In a grid of size
Input Specification
The first line will contain three integers,
The next
Output Specification
On one line, you are to output the number of valid paths through the grid modulo
Subtasks
Subtask 1 [20%]
Subtask 2 [30%]
Subtask 3 [50%]
Sample Input
Copy
3 4 2
2 2
1 4
Sample Output
Copy
3
Comments