Score : 1200 points
Find the number of the possible tuples of sequences (A_0,A_1,...,A_N) that satisfy all of the following conditions, modulo M:
Input is given from Standard Input in the following format:
N K M
Print the number of the possible tuples of sequences (A_0,A_1,...,A_N), modulo M.
2 2 100
5
Five tuples below satisfy the conditions:
4 3 999999999
358
150 150 998244353
186248260