You are given positive integers
Let
Calculate the number of subgraphs of the graph
Constraints
Subtask 1 [20%]
Subtask 2 [20%]
Subtask 3 [20%]
Subtask 4 [20%]
Subtask 5 [20%]
No additional constraints.
Input Specification
The first and only line of input contains three space-separated integers:
Output Specification
Output the number of subgraphs modulo
Sample Input 1
Copy
1 1 998244352
Sample Output 1
Copy
89
Explanation for Sample 1
The graph
Sample Input 2
Copy
2 2 998244352
Sample Output 2
Copy
41377047
Explanation for Sample 2
The graph
Sample Input 3
Copy
31 4 159265358
Sample Output 3
Copy
54714600
Comments