시간 제한메모리 제한제출정답맞힌 사람정답 비율
1.4 초 (추가 시간 없음) 1024 MB23141466.667%

문제

On Mars there is a huge complex of forts. Martians living in these forts are fond of eating Burizons and get very grumpy if they run out of them. Therefore it’s quite common task to transport Burizons among these forts when the supplies are running low somewhere.

The transportation of Burizons is not so simple because of all the space debris falling down on the planet. If some space debris hits the transportation vehicle, not only the vehicle gets destroyed, but even all the supplies transported. That’s why Martians can transport their Burizon supplies only at very precisely timed moments.

Luckily, Martian scientists developed a way to predict practical times when no space debris will be endangering the transport vehicles. For this matter Martians developed a Martian UNIX timestamp, which is represented as a positive integer. Practical time for transportation is a Martian UNIX timestamp m, such that each positive integer smaller than m can be represented as a sum of distinct divisors of m.

As recognizing practical time for transport is not that easy for Martians, they will need you to help them to figure out which of the given timestamps are practical ones.

입력

The first line contains one integer T (1 ≤ T ≤ 100), the number of timestamps to be checked. Each of the next T lines consists of one integer m (1 ≤ m ≤ 1012), the Martian UNIX timestamp.

출력

Output T lines, each with either “Yes” or “No”, answering the question whether the i-th timestamp is practical.

예제 입력 1

5
4
6
10
12
15

예제 출력 1

Yes
Yes
No
Yes
No