#abc248c. [abc248_c]Dice Sum
[abc248_c]Dice Sum
Problem Statement
How many integer sequences of length , , satisfy all of the conditions below?
Since the count can get enormous, find it modulo .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
2 3 4
Sample Output 1
6
The following six sequences satisfy the conditions.
Sample Input 2
31 41 592
Sample Output 2
798416518
Be sure to print the count modulo .