Sum and product

아직 제출이 없습니다시간 제한2초메모리 제한1024 MB

문제

Your math teacher has given the following task for homework: given a positive integer n, find a sequence of positive integers a1, a2, a3,…….., an, such that

a1 × a2 × a3 × … × an = a1 + a2 + a3 + … + an and a1 ≥ a2 ≥ a3 ≥……..≥ an

You quickly solve this task and by doing so, you convince yourself that such a sequence always exists but then you start thinking about the question: "Given a positive integer n, what is the number of sequences with the above properties?"

Write the program, which for a given positive integer n finds the number of sequences of positive integers a1, a2, a3,…….., an, such that

a1 × a2 × a3 × … × an = a1 + a2 + a3 + … + an and a1 ≥ a2 ≥ a3 ≥……..≥ an

입력

From one line of the standard input, read one positive integer n – the count of the numbers in the sequences.

출력

On one line of the standard output, the program has to write the found number of sequences. We know, it can be proven that given the constraints below, the answer is a finite number smaller than 1018.

제한

  • 2 ≤ n ≤ 100 000 000 000