Skip to main content
LIVE CONTEST: ALGOR Contest: Round #4 (Special Challenge) is live now!

~/algor $ cat problems/sonlar-daraja-boluvchilari

Number of divisors of a power

Medium 1000 ms 128 MB 62%
Share

You are given a positive integer $a$ and a non-negative integer $b$. How many positive divisors does $a^{b}$ have? The answer can be very large; print it modulo $10^{9} + 7$. For example, $12^{2} = 144$ has $15$ divisors.

The exponents of the prime factors of a, the exponents multiplied by b, and the number of divisors

Input

One line with two integers: $a$ and $b$.

Output

One integer — the number of divisors modulo $10^{9} + 7$.

Note

$1 \le a \le 10^{12}$
$0 \le b \le 10^{18}$

Examples

Input #1
12 2
Output #1
15
Input #2
7 0
Output #2
1

Sign in to submit a solution

Signing up is free and takes a minute.