Under construction

Still being built. Things may change

Despojados

Time limit1sMemory limit1024 MB

Summary
Count the divisors of N that are squarefree and have at least two prime factors.
Level

Medium5 of 10

Topics
Number theory, Combinatorics, Math
Solved
No attempts yet

Problem

Every positive integer can be written as a product of prime powers. For example, 252=22×32×7252 = 2^2 \times 3^2 \times 7.

An integer is despojado if it can be written as a product of two or more distinct primes with no prime used twice. For example, 6=2×36 = 2 \times 3 and 14=2×714 = 2 \times 7 are despojado. On the other hand 28=22×728 = 2^2 \times 7 is not, because the prime 22 is used twice, and neither 11 nor 1717 is despojado.

You are given an integer NN. Count the divisors of NN that are despojado.

Input

The first line contains an integer NN (1≤N≤10121 \le N \le 10^{12}).

Output

Print the number of despojado divisors of NN on a single line.

Examples5

  1. Example 1

    Input
    252
    
    Expected output
    4
    
  2. Example 2

    Input
    6469693230
    
    Expected output
    1013
    
  3. Example 3

    Input
    8
    
    Expected output
    0
    
  4. Example 4

    Input
    1
    
    Expected output
    0
    
  5. Example 5

    Input
    88290298627
    
    Expected output
    0