100 atcoder#ABC248C. [ABC248C] Dice Sum
[ABC248C] Dice Sum
Score : points
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.
2 3 4
6
The following six sequences satisfy the conditions.
31 41 592
798416518
Be sure to print the count modulo .