#CCBOTPBA0000048. Số cặp ước có tích n (Factor Pairs of an Integer)

Số cặp ước có tích n (Factor Pairs of an Integer)

Factor Pairs of an Integer

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given a positive integer nn, count the pairs of positive integers (a,b)(a,b) satisfying a≤ba\le b and a⋅b=na\cdot b=n. Two pairs are distinct if at least one component differs. The reversed ordering is not counted separately; a pair with a=ba=b is counted once.

Input

One line contains a positive integer nn.

Output

Print a single integer: the number of valid pairs (a,b)(a,b).

Subtasks

  • Subtask 1 (20%): 1≤n≤1041\le n\le 10^4.
  • Subtask 2 (30%): 1≤n≤1081\le n\le 10^8.
  • Subtask 3 (50%): 1≤n≤10121\le n\le 10^{12}.

Examples

Example 1

Input:

36

Output:

5

Explanation: The pairs are (1,36)(1,36), (2,18)(2,18), (3,12)(3,12), (4,9)(4,9) and (6,6)(6,6). The middle pair is counted exactly once. Therefore the result is 55.

Example 2

Input:

1

Output:

1

Explanation: The only pair is (1,1)(1,1), so the result is 11.

Example 3

Input:

12

Output:

3

Explanation: The three valid pairs are (1,12)(1,12), (2,6)(2,6) and (3,4)(3,4).