PROGRAMMING:Angles and polygons
Give you an angle
Can you find three vertices a, B, C on a positive $$n $$polygon such that $$- angle ABC $$= ang $$
![ Picture. PNG] (~ / 18f35773-eb6c-428b-b8e2-026d49690c0d. PNG)
If there are more than one such regular polygon, output the smallest one.
If the polygon does not exist, output $$- 1 $$
###Input format:
The first line contains a positive integer, $$t (1 / Leq T / Leq 180) $, representing the number of queries.
Next, $$t $$lines, each line gives an angle of $$ang (1 / Leq ang / Leq 180) $$
###Output format:
In one line, output the answer to the question as required.
###Input example:
```in
one
fifty-four
```
###Output example:
```out
ten
```
###Example explanation:
The sample corresponds to the picture
answer:If there is no answer, please comment
Can you find three vertices a, B, C on a positive $$n $$polygon such that $$- angle ABC $$= ang $$
![ Picture. PNG] (~ / 18f35773-eb6c-428b-b8e2-026d49690c0d. PNG)
If there are more than one such regular polygon, output the smallest one.
If the polygon does not exist, output $$- 1 $$
###Input format:
The first line contains a positive integer, $$t (1 / Leq T / Leq 180) $, representing the number of queries.
Next, $$t $$lines, each line gives an angle of $$ang (1 / Leq ang / Leq 180) $$
###Output format:
In one line, output the answer to the question as required.
###Input example:
```in
one
fifty-four
```
###Output example:
```out
ten
```
###Example explanation:
The sample corresponds to the picture
answer:If there is no answer, please comment