PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#GL0000209. Đếm dãy có tích bằng M (Factorization)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Đếm dãy có tích bằng M (Factorization)

Đếm dãy có tích bằng M (Factorization)

Source: AtCoder

Version: Phuoc Hung OJ Extended

Problem Statement

Given positive integers N,MN,M, count the ordered sequences (a1,…,aN)(a_1,\ldots,a_N) of positive integers with product a1a2⋯aN=Ma_1a_2\cdots a_N=M. Two sequences differing at any position are distinct. Output the count modulo 109+710^9+7.

Input

One line containing N,MN,M.

Output

Print the number of valid sequences modulo 109+710^9+7.

Subtasks

  • Subtask 1 (20 points): 1≤N≤101\le N\le 10; 1≤M≤10001\le M\le 1000.

  • Subtask 2 (30 points): 1≤N≤10001\le N\le 1000; 1≤M≤10000001\le M\le 1000000.

  • Subtask 3 (50 points): 1≤N≤1000001\le N\le 100000; 1≤M≤10000000001\le M\le 1000000000.

Examples

Example 1

Input

2 6

Output

4

Explanation

The sequences are (1,6), (2,3), (3,2), (6,1).

Example 2

Input

3 12

Output

18

Explanation

12=2^2*3. The corresponding stars-and-bars counts are 6 and 3, so the result is 18.

Example 3

Input

1 1

Output

1

Explanation

The sole sequence is (1).