AtCoder Beginner Contest 100
翻译中…
Problem Statement
翻译中…
E869120's and square1001's $16$-th birthday is coming soon.
Takahashi from AtCoder Kingdom gave them a round cake cut into $16$ equal fan-shaped pieces.
翻译中…
E869120 and square1001 were just about to eat $A$ and $B$ of those pieces, respectively,
when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".
翻译中…
Can both of them obey the instruction in the note and take desired numbers of pieces of cake?
翻译中…
Constraints
翻译中…
$A$and$B$are integers between$1$and$16$(inclusive).$A+B$is at most$16$.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
A B
翻译中…
Output
翻译中…
If both E869120 and square1001 can obey the instruction in the note and take desired numbers of pieces of cake, print Yay!; otherwise, print :(.
翻译中…
样例
Input #1
5 4
Output #1
Yay!
Both of them can take desired number of pieces as follows: 
Input #2
8 8
Output #2
Yay!
Both of them can take desired number of pieces as follows: 
Input #3
11 4
Output #3
:(
In this case, there is no way for them to take desired number of pieces, unfortunately.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。