#P5150. 生日礼物

生日礼物

Description

wyh has a lucky number nn. Now hke plans to give him a gift with thoughtfulness value aa, and ljc plans to give him a gift with thoughtfulness value bb. Together, their gifts have thoughtfulness value lcm(a,b)\operatorname{lcm}(a,b), where lcm\operatorname{lcm} denotes the least common multiple. wyh receives this combined gift.

If the thoughtfulness value of the gift wyh receives is exactly nn, he will be happy. How many ways are there to give gifts that make wyh happy?

Input Format

A positive integer nn.

Output Format

An integer representing the answer.

6
9

Hint

Sample Explanation

These 99 ways are: $(1,6),(2,6),(3,6),(6,6),(2,3),(3,2),(6,1),(6,2),(6,3)$.

Constraints

For 30%30\% of the testdata, n1000n \leq 1000.

For 100%100\% of the testdata, n1016n \leq 10^{16}.

Translated by ChatGPT 5