CPDUEL5A - Comet Number

A positive integer X is a comet number if there exists 5 positive integers A B C D E such that:

  • A + B + C + D = X
  • A + E, B - E, C * E, and D / E are pairwise equal, meaning A + E = B - E = C * E = D / E

Kanata gave Suisei N positive integers Ai for 1 ≤ i ≤ N.

Suisei would like to know whether Ai is a comet number or not.

Input

The first line contains an integer N.

The next N lines contain an integer Ai.

Output

Print N lines.

The i-th line contains the string "YES" (without quotes) if Ai is a comet number and "NO" (without quotes) otherwise.

Example

Input:
4
8
1
69
128

Output:
YES
NO
NO
YES

Explanation

8 is a comet number as there exists a valid quintuple (A, B, C, D, E) = (1, 3, 2, 2, 1).

128 is a comet number as there exists a valid quintuple (A, B, C, D, E) = (31, 33, 32, 32, 1).

Constraints

1 ≤ N, Ai ≤ 105


Added by:Maximilliano
Date:2020-11-05
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All
Resource:Own Problem

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.