101000: [AtCoder]ABC100 A - Happy Birthday!

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score: $100$ points

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 :(.


Sample Input 1

5 4

Sample Output 1

Yay!

Both of them can take desired number of pieces as follows:


Sample Input 2

8 8

Sample Output 2

Yay!

Both of them can take desired number of pieces as follows:


Sample Input 3

11 4

Sample Output 3

:(

In this case, there is no way for them to take desired number of pieces, unfortunately.

Input

题意翻译

**题目大意** 一个圆形蛋糕分成16等份后,E869120要吃A块,square1001要吃B块(1<=A,B<=16),但是同一个人不能同时拿相邻的两个蛋糕.那么,他们2个人能拿到想吃的数量的蛋糕吗? **输入** 两个数A和B,中间用空格隔开 **输出** 一行,能则输出“Yay!”,不能则输出“:(”.

加入题单

算法标签: