2308: Graph

内存限制:128 MB 时间限制:1.000 S
评测方式:文本比较 命题人:
提交:71 解决:22

题目描述

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

来源/分类