#abc110d. [abc110_d]Factorization
[abc110_d]Factorization
Problem Statement
You are given positive integers and .
How many sequences of length consisting of positive integers satisfy ? Find the count modulo .
Here, two sequences and are considered different when there exists some such that .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the number of the sequences consisting of positive integers that satisfy the condition, modulo .
Sample Input 1
2 6
Sample Output 1
4
Four sequences satisfy the condition: $\\{a_1, a_2\\} = \\{1, 6\\}, \\{2, 3\\}, \\{3, 2\\}$ and .
Sample Input 2
3 12
Sample Output 2
18
Sample Input 3
100000 1000000000
Sample Output 3
957870001