A set is called a good set if every element is a positive integer not exceeding , and any two distinct elements of the set have an absolute difference of at least .
Find the number of good sets modulo .
Constraints
Subtask 1 [10%]
Subtask 2 [30%]
Subtask 3 [60%]
No additional constraints.
Input Specification
The only line contains two space-separated integers, and .
Output Specification
Output the number of good sets modulo .
Sample Input
4 3
Sample Output
6
Explanation for Sample
The good sets are .
Comments