#d1801. Rad

Rad

Rad

Problem Description

Define

$$rad(n) = \prod_{\begin{matrix} p \mid n \\ p \in \text{Prime} \end{matrix}} p$$

Given an integer nn, if there exist two positive integers a,ba, b such that a+b=na + b = n and rad(a×b×n)<nrad(a \times b \times n) < n, output YES; otherwise output NO.

Input Format

The first line contains an integer TT.

Each of the next TT lines contains one integer nn.

Output Format

Output YES or NO on each line.

Sample Input

3
4
18
30

Sample Output

YES
YES
NO

Constraints

For all data, 1≤T≤101 \le T \le 10 and 1≤n≤10181 \le n \le 10^{18}.