Your math teacher has given the following task for homework: given a positive integer , find a sequence of positive integers a_1, a_2, a_3, \ldots, a_n, such that
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 , what is the number of sequences with the above properties?"
Task: Write the program sum_prod, which for a given positive integer finds the number of sequences of positive integers a_1, a_2, a_3, \ldots, a_n, such that
From one line of the standard input, read one positive integer – 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 10^{18}.
Example 1
Example 2
For n = 2: There is only one sequence with the specified properties and it is .
For n = 8: The two sequences are (8, 2, 1, 1, 1, 1, 1, 1) and (3, 2, 2, 1, 1, 1, 1, 1).
Subtask | Points | |
1 | 5 | |
2 | 10 | \leq 1\,000\,000 |
3 | 10 | \leq 100\,000\,000 |
4 | 10 | \leq 1\,000\,000\,000 |
5 | 20 | \leq 10\,000\,000\,000 |
6 | 45 | \leq 100\,000\,000\,000 |
The points for a subtask are given only if all the tests are successfully passed.