#ABC110D. [ABC110D] Factorization

[ABC110D] Factorization

提示:该题测试数据补录中,暂不支持评测提交。

No testdata at current.

No submission language available for this problem.

Score : 400400 points

Problem Statement

You are given positive integers NN and MM.

How many sequences aa of length NN consisting of positive integers satisfy a1×a2×...×aN=Ma_1 \times a_2 \times ... \times a_N = M? Find the count modulo 109+710^9+7.

Here, two sequences a′a' and a′′a'' are considered different when there exists some ii such that ai′≠ai′′a_i' \neq a_i''.

Constraints

  • All values in input are integers.
  • 1≤N≤1051 \leq N \leq 10^5
  • 1≤M≤1091 \leq M \leq 10^9

Input

Input is given from Standard Input in the following format:

NN MM

Output

Print the number of the sequences consisting of positive integers that satisfy the condition, modulo 109+710^9 + 7.

2 6
4

Four sequences satisfy the condition: {a1,a2}={1,6},{2,3},{3,2}\{a_1, a_2\} = \{1, 6\}, \{2, 3\}, \{3, 2\} and {6,1}\{6, 1\}.

3 12
18
100000 1000000000
957870001