No.1040 Vertical University
Problem Statement
Takahashi is a student at Vertical University (abbreviated: Choku-dai).
Today's assignment at Vertical University is to draw $2$ perpendicular lines.
First, Takahashi drew $2$ long line segments $l,m$, each having point $O$ as one endpoint, and a small circle $C$ centered at point $O$. Then, letting $A$ be the intersection of segment $l$ and circle $C$, and $B$ be the intersection of segment $m$ and circle $C$, he started walking along circle $C$ from point $A$ and finished walking at point $B$.
Takahashi remembers that he went $N$° counterclockwise along the circle (corrected at 22:12: 度→°). Determine whether Takahashi has managed to draw $2$ perpendicular lines.
Input
$N$
$1 \le N \le 10^3$
$N$ is an integer.
Output
Print "Yes" if Takahashi has managed to draw $2$ perpendicular lines, and "No" otherwise.
Sample
Sample 1
Input
90
Output
Yes
Sample 2
Input
180
Output
No
Sample 3
Input
630
Output
Yes
He may have gone around the circle one or more full times.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
Suunn
ast210