Your task is to judge whether a regular polygon can be drawn only by straightedge and compass.

The length of the straightedge is infinite.

The width of the compass is infinite.

The straightedge does not have scale.

Submitted: 18 Accepted: 10

[Submit][Status][Web Board]

Your task is to judge whether a regular polygon can be drawn only by straightedge and compass.

The length of the straightedge is infinite.

The width of the compass is infinite.

The straightedge does not have scale.

There are several test cases. Each test case contains a positive integer n (3<=n<=10^9). The input will be ended by the End Of File.

If the regular polygon with n sides can be drawn only by straightedge and compass, output YES in one line, otherwise, output NO in one line.

```
3
4
5
6
7
```

```
YES
YES
YES
YES
NO
```

Wuhan University of Science and Technology Online Judge 2.0

Copyright © 2012-2016 WUST ACM CLUB. All Rights Reserved.

Based On HUSTOJ Open Source Project

Designer & Developer : Bob Lee | ChengBo Meng | Faith