Under construction

Still being built. Things may change

Ordered Pairs

Interview

Time limit0.5sMemory limit512 MB

Summary
Count the ordered pairs of natural numbers whose product equals a given N.
Level

Easy3 of 10

Topics
Math, Number theory, Brute force, Implementation
Solved
No attempts yet

Problem

An ordered pair is written as (a,b)(a, b). Two ordered pairs (a1,b1)(a_1, b_1) and (a2,b2)(a_2, b_2) are equal when a1=a2a_1 = a_2 and b1=b2b_1 = b_2.

Given a natural number NN, write a program that counts the distinct ordered pairs (a,b)(a, b) whose product a×ba \times b equals NN. Both aa and bb must be natural numbers.

Input

The first line contains a natural number NN (1≤N≤1,000,000,0001 \le N \le 1{,}000{,}000{,}000).

Output

Print the number of distinct ordered pairs whose product equals NN on the first line.

Examples5

  1. Example 1

    Input
    10
    
    Expected output
    4
    
  2. Example 2

    Input
    16
    
    Expected output
    5
    
  3. Example 3

    Input
    1048576
    
    Expected output
    21
    
  4. Example 4

    Input
    23
    
    Expected output
    2
    
  5. Example 5

    Input
    469762049
    
    Expected output
    2