D. Distribute the Pizza
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

Oyshee and Farhana bought a pizza which is divided into some equal slices. Here, the number of slices is unknown to us. All we know is the radius, $$$r$$$ of the pizza and the angle, $$$\theta$$$ (in degree) of a slice. See the image below for a better understanding.

Is it possible to distribute all the slices between them equally? Note that, they cannot divide the slices any further.

Input

The input consists of multiple test cases. First line contains an integer $$$t$$$ $$$(1 \leq t \leq 2400)$$$ - the number of test cases. The descriptions of the test cases follow.

The first and only line of each test case contains two integers $$$r$$$ and $$$\theta$$$ $$$(1 \leq r \leq 100,$$$ $$$1 \leq \theta \leq 360)$$$ - the radius of the pizza and the angle of a slice. You can assume that the input will be given in a way that the pizza can be divided into some equal slices.

Output

For each test case, print "YES" (without quotes), if it is possible that both of them get an equal amount of slices, "NO" (without quotes) otherwise.

Example
Input
3
10 45
5 40
8 60
Output
YES
NO
YES