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-----
5 4

-----Sample Output-----
Yay!

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


Difficulty: introductory

Starter code:

Solutions:
a, b = map(int, input().split())
print("Yay!" if a <= 8 and b <= 8 else ":(")

A,B=list(map(int,input().split()))
if A<=8 and B<=8:
    print("Yay!")
else:
    print(":(")


a,b=map(int,input().split())

if a<=8 and b<=8:
    print("Yay!")
else:
    print(":(")

a,b=map(int,input().split(" "))
print([":(","Yay!"][max(a,b)<9])

#!/usr/bin/env python3
# import sys
# sys.recursionlimit(10**7)
from functools import reduce


def solve(a,b):
    if a <= 8 and b <= 8:
        return "Yay!"
    else:
        return ":("

def main():
    a,b = list(map(int,input().split()))
    print(('{}'.format(solve(a,b))))




def __starting_point():
  main()

__starting_point()

a,b = map(int,input().split())
if abs(a-b)>0:
    if a+b+abs(a-b)<17:
        print("Yay!")
    else:
        print(":(")
else:
    print("Yay!")

a, b = map(int, input().split())
if a > 8 or b > 8:
    print(':(')
else:
    print('Yay!')

A,B=list(map(int,input().split()))

if A<9 and B<9:
    print("Yay!")
else:
    print(":(")


A,B=map(int,input().split())
if A<=8 and B<=8:
  print('Yay!')
else:
  print(':(')

A,B=map(int,input().split())
ans="Yay!"
if A>8 or B>8:
    ans=":("
print(ans)    

a,b=map(int,input().split())
print("Yay!" if a<=8 and b<=8 else ":(")

a,b=list(map(int,input().split()))
if a<=8 and b<=8:
  print('Yay!')
  return
print(':(')

A, B = list(map(int, input().split()))
if A<=8 and B<=8:
    print("Yay!")
else:
    print(":(")



a,b =map(int,input().split())
print("Yay!" if a<=8 and b<=8 else ":(")

a,b=map(int,input().split())
if a>8 or b>8:
  print(":(")
else:
  print("Yay!")

A, B = map(int, input().split())
if A > 8 or B > 8:
    print(':(')
else:
    print('Yay!')

A,B = map(int, input().split())
if A <= 8 and B <= 8:
    print('Yay!')
else:
    print(':(')

a,b = list(map(int,input().split()))

if a <= 8 and b <= 8:
  print('Yay!')
else:
  print(':(')


A, B = map(int, input().split())
print('Yay!' if A <= 8 and B <= 8 else ":(")

a,b = map(int,input().split())
if a>8 or b>8:
    print(":(")
else:
    print("Yay!")

A,B = list(map(int,input().split()))

if (A<9 and B<9):
	print('Yay!')
else:
	print(':(')


a,b=map(int,input().split())
print('Yay!' if a<9 and b<9 else ':(')

a,b=map(int,input().split())
if a<=8 and b<=8:
    print("Yay!")
else:
    print(":(")

a,b = map(int,input().split())
if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")

A,B = map(int,input().split())
if A<=8 and B<=8:
    print('Yay!')
else:
    print(':(')

a,b = map(int,input().split())
if max(a,b)>8:
  print(":(")
else:
  print("Yay!")

a,b = list(map(int,input().split()))
print(("Yay!" if a<=8 and b<=8 else ":("))


a,b=map(int, input().split())
if a>8 or b>8:
  print(':(')
else:
  print('Yay!')

A, B = map(int,input().rstrip().split())
if A<=8 and B<=8:
    print("Yay!")
else:
    print(":(")

a,b = list(map(int,input().split()))
if a <= 8 and b <= 8:
  print("Yay!")
else:
  print(":(")



A,B = map(int,input().split())

if abs(A-B) <= 1:
    print("Yay!")
else:
    print(":(")

a,b=map(int,input().split())
print('Yay!' if a<=8 and b<=8 else ':(')

a,b=map(int,input().split())
if a<=8 and b<=8:
    print("Yay!")
else:
    print(":(")

a,b=input().split()
a=int(a)
b=int(b)
if a<=8:
  if b<=8:
    print("Yay!")
  else:
    print(":(")
else:
  print(":(")

a,b=map(int,input().split())
if a<=8 and b<=8:
    print("Yay!")
else:
    print(":(")

a,b= map(int,input().split())
if a<=8 and b<=8: print('Yay!')
else: print(':(')

import sys

A, B = list(map(int, input().split()))

if A<=8 and B<=8:
    print("Yay!")
else:
    print(":(")

A,B = map(int,input().split())
if A <= 8 and B <= 8:
    print('Yay!')
else:
    print(':(')

a,b = map(int, input().split())
if a>=9 or b>=9:
  print(':(')
else:
  print('Yay!')

a,b=map(int,input().split())

if a > 8 or b > 8:
  print(':(')
else:
  print('Yay!')

a,b = map(int,input().split())
print("Yay!" if a <= 8 and b <= 8 else ":(")

A,B=input().split()
if int(A)<=8 and int(B)<=8:
  print("Yay!")
else:
  print( ":(")

lst = input().split()
a = int(lst[0])
b = int(lst[1])

if (a <= 8) and (b <= 8):
   print('Yay!')
else:
   print(':(')

a,b = map(int,input().split())
print(":(" if a > 8 or b > 8 else "Yay!")

a, b = list(map(int, input().split()))

if a <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')


import sys
input = sys.stdin.readline

a, b = map(int,input().split())
c = max(a, b)
d = min(a, b)
e = 16 - 2*c
if e < 0:
    print(':(')
else:
    if e // 2 >= c - d:
        print('Yay!')
    else:
        print(':(')

A,B=map(int,input().split())
print('Yay!' if A <= 8 and B <= 8 else ':(')

a, b = list(map(int, input().split()))
if a <= 8 and b <= 8:
  print('Yay!')
else:
  print(':(')

a,b = map(int,input().split())
if a<=8 and b<=8: print("Yay!")
else: print(":(")

if max(list(map(int,input().split()))) >8:
  print(":(")
else:
  print("Yay!")


a, b = map(int, input().split())

if 8 < a or 8 < b:
    ans = ':('
else:
    ans = 'Yay!'

print(ans)

def mapt(fn, *args):
    return tuple(map(fn, *args))


def Input():
    return mapt(int, input().split(" "))


def main():
    a, b = Input()
    if a <= 8 and b <= 8:
        print("Yay!")
    else:
        print(":(")


main()

import sys
import math

#https://atcoder.jp/contests/agc008/submissions/15248942
sys.setrecursionlimit(10 ** 8)
ini = lambda: int(sys.stdin.readline())
inm = lambda: map(int, sys.stdin.readline().split())
inl = lambda: list(inm())
ins = lambda: sys.stdin.readline().rstrip()
debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw))

A,B = inm()

if A <= 8 and B <= 8:
    print("Yay!")
else:
    print(":(")

a, b = map(int, input().split())
if a <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')

a, b = map(int, input().split())
if a > 8 or b > 8:
    print(':(')
else:
    print('Yay!')

# -*- coding: utf-8 -*-

def get_input() -> tuple:
    """
    標準入力を取得する.

    Returns:\n
        tuple: 標準入力
    """
    A, B = list(map(int, input().split()))

    return A, B


def main(A: int, B: int) -> None:
    """
    メイン処理.

    Args:\n
        A (int): 切れ(1 <= A <= 16)
        B (int): 切れ(1 <= B <= 16)
    """
    # 求解処理
    ans = str()
    if (A <= 8) and (B <= 8):
        ans = "Yay!"
    else:
        ans = ":("

    # 結果出力
    print(ans)


def __starting_point():
    # 標準入力を取得
    A, B = get_input()

    # メイン処理
    main(A, B)

__starting_point()

a, b = list(map(int, input().split()))

if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")

a, b = list(map(int, input().split()))
print(('Yay!' if max(a, b) <= 8 else ':('))


a, b = list(map(int, input().split()))

if a <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')


x = input()
y = x.split()
a = int(y[0])
b = int(y[1])
if(a > 8 or b > 8):
  print(":(")
else:
  print("Yay!")

a, b = list(map(int, input().split()))
if a > 8 or b > 8:
    print(":(")
else:
    print("Yay!")


a,b=map(int,input().split())
if max(a,b)<9:print('Yay!')
else:print(':(')

A, B = map(int, input().split())

if A <= 8 and B <= 8:
    print('Yay!')
else:
    print(':(')

a,b = map(int,input().split())
if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")

a,b=map(int,input().split())

if a<=8 and b<=8:
    print("Yay!")
else:
    print(":(")

a,b = list(map(int, input().split()))
if a <= 8 and b <= 8:
  print("Yay!")
else:
  print(":(")

A, B  = map(int, input().split())

if A <= 8 and B <= 8 : 
    print('Yay!')
else :
    print(':(')

print([":(", "Yay!"][max(list(map(int, input().split()))) <= 8])

a,b = map(int,input().split())
if a > 8 or b > 8:
    print(':(')
else:
    print('Yay!')

a, b = map(int, input().split())
if a <= 8 and b <= 8:
  print('Yay!')
else:
  print(':(')

a, b = list(map(int, input().split()))

if a <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')


a, b = list(map(int, input().split()))
if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")


A,B = map(int,input().split())
print("Yay!") if A<=8 and B<=8 else print(':(')

n,m = [int(x) for x in input().split()]
if n < 9 and m < 9:
  print("Yay!")
else:
  print(":(")

A,B=map(int,input().split())
if A<=8 and B<=8:
  print("Yay!")
else:
  print(":(")

# -*- coding: utf-8 -*-
# 標準入力を取得
A, B = list(map(int, input().split()))

# 求解処理
ans = str()
if (A <= 8) and (B <= 8):
    ans = "Yay!"
else:
    ans = ":("

# 結果出力
print(ans)


a, b = list(map(int, input().split()))
if a <= 8 and b <= 8:
  print("Yay!")
else:
  print(":(")


a, b = list(map(int, input().split()))

print(('Yay!' if a <= 8 and b <= 8 else ':('))


a, b = map(int, input().split())

if a <=8 and b<=8:
  print('Yay!')
else:
  print(':(')

a,b = map(int,input().split())
if a <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')

a, b = list(map(int, input().split()))
if a <= 8 and b <= 8:
  print("Yay!")
else:
  print(":(")


#!/usr/bin/env python3
import sys
def input(): return sys.stdin.readline().rstrip()


def main():
    print(('Yay!' if all([True if int(x)<9 else False for x in input().split()]) else ':('))
    


def __starting_point():
    main()


__starting_point()

a, b = map(int, input().split())

if a <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')

a,b=map(int, input().split())
print("Yay!" if a<=8 and b<=8  else ":(")

a, b = list(map(int, input().split()))
 
if a <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')


a,b = map(int, input().split())
if a <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')

a, b = map(int, input().split())
if a<=8 and b<=8:
  print("Yay!")
else:
  print(":(")

import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
from collections import deque

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

DR = [1, -1, 0, 0]
DC = [0, 0, 1, -1]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
     
def main():
    A, B = LI()
    if A < 9 and B < 9:
        print("Yay!")
    else:
        print(":(")


main()



import sys


def input(): return sys.stdin.readline().strip()
def I(): return int(input())
def LI(): return list(map(int, input().split()))
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def S(): return input()
def LS(): return input().split()


INF = float('inf')

a, b = LI()
if a <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')

a, b = list(map(int, input().split()))
if max(a, b) - min(a, b)  <= 1:
  print("Yay!")
else:
  print(":(")


l = list(map(int, input().split()))

if l[0] <= 8 and l[1] <= 8:
    print("Yay!")
else:
    print(":(")



a,b=map(int,input().split())
if a<=8 and b<=8:
    print('Yay!')
else:
    print(':(')

A, B = list(map(int,input().split()))
if A <= 8 and B <= 8:
  print("Yay!")
else:
  print(":(")


A, B = map(int, input().split())

if A <= 8 and B <=8:
  print("Yay!")
else:
  print(":(")

a, b = map(int, input().split())
if a <= 16 /2 and b <= 16 / 2:
    print('Yay!')
else:
    print(':(')

def main():
    a,b = list(map(int, input().split()))
    if a <= 8 and b <= 8:
        print('Yay!')
    else:
        print(':(')

def __starting_point():
    main()
__starting_point()

a, b = map(int, input().split())
if a <= 8 and b <= 8:
  print('Yay!')
else:
  print(':(')

a,b=map(int,input().split())
if a<=8 and b<=8:
  print('Yay!')
else:
  print(":(")

A,B = map(int,input().split())
print("Yay!" if A <= 8 and B <= 8 else ":(")

a,b=map(int, input().split())

if a<=8 and b<=8:
    print("Yay!")
else:
    print(":(")