# Almost Square Numbers

A positive integer N is called a almost-square if and only if a*b*b = N, where a and b are distinct integers, a >= 1 and b > 1.

**Input Specifications**

Read till EOF. Each line contains one integer N.

**Output Specifications**

Output "YES" or "NO" based on whether N is almost square or not.

**Sample Test Cases**

*Input*

```
```

48

47

847

*Output*

```
```

YES

NO

YES

**Constraints**

2 <= N <= 10

^{8}

No. of Test Cases <= 1000

*Problem Setter : Shikhar Sharad*

**Languages:**AWK,Bash,Brain,C,C++,Java,C#,JavaScript,Pascal,Perl,PHP,Python,Python3,Ruby,Text