A Country named Bitland wants to build a wall around his parliament house to keep it safe from attacks.
president wants the wall to be a regular polygon.
So they came up with some ideas for the angle between two walls.
You need to report to the president that whether this angle is suitable or not.
In other words can we make a regular polygon with given angle.
- First line of input contains T number of test cases.
- following T lines contains a single integer n - the angle.
- For each test case print "YES" if you can make a wall ,and "NO" if you can not ( without any quotes. ).
It is not possible in 1st test case .
with angle 60 degree -a regular triangle and with 90 degree -a square
for each input file.
Marks are awarded when all the testcases pass.