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

~/algor $ cat problems/funksiya-eng-kop-boluvchili-son

Divisor count function

Easy 1000 ms 128 MB 27%
Share

Write a function DivisorCount(x) that returns the number of positive divisors of the positive integer $x$.

Example 1: DivisorCount(12) → 6 — $1$, $2$, $3$, $4$, $6$, $12$.

Example 2: DivisorCount(7) → 2 — $7$ is divisible only by $1$ and itself.

Write only the function body.

A number goes into the function DivisorCount, which returns the number of its positive divisors

Input

One line with a positive integer $x$ — the argument of the function.

Output

The value returned by the function: an integer.

Note

$1 \le x \le 10^{6}$

Examples

Input #1
12
Output #1
6
Input #2
7
Output #2
2

Sign in to submit a solution

Signing up is free and takes a minute.