#K88672. Special Number Divisor Check

    ID: 37361 Type: Default 1000ms 256MiB

Special Number Divisor Check

Special Number Divisor Check

You are given a positive integer n. A number is considered special if it has exactly three distinct natural number divisors. It can be shown mathematically that a number n has exactly three divisors if and only if n = p^2, where p is a prime number. For example, 4 (since 4 = 22 and 2 is prime) has exactly three divisors: 1, 2, and 4.

Your task is to determine whether the given number is special. Use the formula below:

n=p2with p primen = p^2 \quad\text{with } p \text{ prime}

If the condition holds, output True; otherwise, output False.

inputFormat

The input consists of a single line containing an integer n (1 ≤ n ≤ 1012).

outputFormat

Output a single line: True if n is a special number with exactly three distinct natural number divisors, and False otherwise.

## sample
4
True