B. LCM

xiaoxiao2025-11-27  7

B. LCM

time limit per test

1 second

memory limit per test

256 megabytes

input

standard input

output

standard output

Ivan has number bb. He is sorting through the numbers aa from 11 to 10181018, and for every aa writes [a,b]a[a,b]a on blackboard. Here [a,b][a,b] stands for least common multiple of aa and bb. Ivan is very lazy, that's why this task bored him soon. But he is interested in how many different numbers he would write on the board if he would finish the task. Help him to find the quantity of different numbers he would write on the board.

Input

The only line contains one integer — bb (1≤b≤1010)(1≤b≤1010).

Output

Print one number — answer for the problem.

Examples

input

Copy

1

output

Copy

1

input

Copy

2

output

Copy

2

Note

In the first example [a,1]=a[a,1]=a, therefore [a,b]a[a,b]a is always equal to 11.

In the second example [a,2][a,2] can be equal to aa or 2⋅a2⋅a depending on parity of aa. [a,b]a[a,b]a can be equal to 11 and 22.

#include<iostream> #include<stdio.h> #include<algorithm> using namespace std; int main() { long long n,c; scanf("%lld",&n); c=0; for(long long int i=1; i*i<=n; i++) { if(n%i==0){c+=2; printf("%d\n",i);} if(i*i==n) c--; } printf("%lld\n",c); }

 

转载请注明原文地址: https://www.6miu.com/read-5040120.html

最新回复(0)