No.969 Rock Paper Scissors
Problem Statement
Sayaka decided to play rock paper scissors using both hands.
At the call of "Rock, paper, scissors, go!", she made each of her right hand and left hand into one of "Rock", "Scissors", or "Paper",
and the sum of the number of fingers raised on her right hand and the number of fingers raised on her left hand turned out to be $X$.
Here, it is considered that
- a "Rock" hand has 0 fingers raised
- a "Scissors" hand has 2 fingers raised
- a "Paper" hand has 5 fingers raised
Determine whether it is possible that the game ended in a draw.
Input
$X$
- $X$ is a non-negative integer consistent with the problem statement
Output
Print "Yes" if it is possible that the game ended in a draw, and "No" otherwise.
Print a newline at the end.
Sample
Sample 1
Input
0
Output
Yes
The only possibility is that both the right hand and the left hand are Rock, so the game is a draw.
Sample 2
Input
7
Output
No
There are two possibilities: "the right hand is Scissors and the left hand is Paper" and "the right hand is Paper and the left hand is Scissors".
In the former the right hand wins, and in the latter the left hand wins, so in either case it is not a draw.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
沙耶花
shibh308