Codeforces Round 652 (Div. 2)
A
FashionabLee
Codeforces
800
原题
←B →
翻译中…

Lee is going to fashionably decorate his house for a party, using some regular convex polygons...

翻译中…

Lee thinks a regular $n$-sided (convex) polygon is beautiful if and only if he can rotate it in such a way that at least one of its edges is parallel to the $OX$-axis and at least one of its edges is parallel to the $OY$-axis at the same time.

翻译中…

Recall that a regular $n$-sided polygon is a convex polygon with $n$ vertices such that all the edges and angles are equal.

翻译中…

Now he is shopping: the market has $t$ regular polygons. For each of them print YES if it is beautiful and NO otherwise.

翻译中…

Input

翻译中…

The first line contains a single integer $t$ ($1 \le t \le 10^4$) — the number of polygons in the market.

翻译中…

Each of the next $t$ lines contains a single integer $n_i$ ($3 \le n_i \le 10^9$): it means that the $i$-th polygon is a regular $n_i$-sided polygon.

翻译中…

Output

翻译中…

For each polygon, print YES if it's beautiful or NO otherwise (case insensitive).

翻译中…

Note

翻译中…

In the example, there are $4$ polygons in the market. It's easy to see that an equilateral triangle (a regular $3$-sided polygon) is not beautiful, a square (a regular $4$-sided polygon) is beautiful and a regular $12$-sided polygon (is shown below) is beautiful as well.

翻译中…

image

翻译中…

样例

Input #1
4
3
4
12
1000000000
Output #1
NO
YES
YES
YES
InputCopy OutputCopy
题目信息
题号
1369A
时间限制
2 s
内存限制
256 MB
标签
计算几何
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。