- Time limit: 1.00 s
- Memory limit: 512 MB
You have a pawn at point on a three dimensional grid. In one move you can increase either the , or coordinate by one. In how many ways can you reach point ?
Input
A single line contains three integers and .
Output
Print the answer modulo .
Constraints
Example 1
Input:
0 1 4
Output:
5
Example 2
Input:
1 1 1
Output:
6
Example 3
Input:
94451 13922 46410
Output:
534902695