The Right One
Tag(s):

## Easy, Geometry, Implementation, Math

Problem
Editorial
Analytics

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.

INPUT

• First line of input contains T number of test cases.
• following T lines contains a single integer n - the angle.

OUTPUT

• For each test case print "YES" if you can make a wall ,and "NO" if you can not ( without any quotes. ).

CONSTRAINTS

• 1<= T <180
• 1<= n <180
SAMPLE INPUT
3
30
60
90
SAMPLE OUTPUT
NO
YES
YES
Explanation

It is not possible in 1st test case . with angle 60 degree -a regular triangle and with 90 degree -a square

Time Limit: 2.0 sec(s) for each input file.
Memory Limit: 256 MB
Source Limit: 1024 KB
Marking Scheme: Marks are awarded when all the testcases pass.
Allowed Languages: C, C++, C++14, Clojure, C#, D, Erlang, F#, Go, Groovy, Haskell, Java, Java 8, JavaScript(Rhino), JavaScript(Node.js), Julia, Kotlin, Lisp, Lisp (SBCL), Lua, Objective-C, OCaml, Octave, Pascal, Perl, PHP, Python, Python 3, R(RScript), Racket, Ruby, Rust, Scala, Swift, Swift-4.1, Visual Basic

## CODE EDITOR

Initializing Code Editor...
Your Rating:

## This Problem was Asked in

Challenge Name

MNIT-Codes Episode-01

OTHER PROBLEMS OF THIS CHALLENGE
• Math > Number Theory
• Math > Number Theory
• Basic Programming > Implementation
Notifications

?