Time limit 2000/2000/2000/2000 ms. Memory limit 262144/262144/262144/262144 Kb.
Problem description
The sequence of k natural numbers (a1, a2, …, ak) is called normal, if they satisfy following rules:
- each ai is a divisor of n;
- a1 < a2 < … < ak;
- for each i from 1 to k - 1: ai and ai+1 are coprime (GCD(ai, ai+1) = 1);
- multiplication of a1a2…ak is not bigger than n.
For example, (2, 9, 10) is normal sequence of length 3 of divisors of 360.
Write a program that according to given n and k will calculate number of normal sequences of length k of divisors of n.
Input
There are two integers in single line of input : n and k (2 ≤ n ≤ 108, 2 ≤ k ≤ 10).
Output
A single integer - number of normal sequences of length k of divisors of n.
Example
| stdin |
stdout |
|
90 3 |
16 |
| 10 2 |
4 |
Для отправки решений необходимо выполнить вход.
|