HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


Divisors

Section problems

• Бириктирилген создук
• Fleas
• Бутун сандар массиви
• Babel tower
• Вирусы
• Выполнимость
• Гангстеры
• Деление длинного числа на короткое
• Divisors
• День рождения
• Длинная сумма
• Длинное произведение
• Длинный НОД
• Pizza delivery
• Ездец
• Жакшы жуп
• Find Common Characters

Feedback

If you notice incorrect translations in Contester, please let author know.

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:

  1. each ai is a divisor of n;
  2. a1 < a2 < … < ak;
  3. for each i from 1 to k - 1: ai and ai+1 are coprime (GCD(ai, ai+1) = 1);
  4. multiplication of a1a2ak 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
Для отправки решений необходимо выполнить вход.

www.contester.ru