Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/while-boluvchilar-soni

Number of divisors

Medium 1000 ms 64 MB 49%
Share

A positive integer $n$ is given. Compute the total number of its positive divisors.

Counting all divisors of a positive integer

Input

One positive integer $n$.

Output

One integer — the number of divisors.

Note

$1 \le n \le 10^{12}$

Examples

Input #1
12
Output #1
6
Input #2
36
Output #2
9

Sign in to submit a solution

Signing up is free and takes a minute.