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

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

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

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

Solution (Python):
a, b = map(int, input().split())
if a < 9 and b < 9:
    print("Yay!")
    exit()
print(":(")

Solution (Python):
A,B = map(int, input().split())

if (A >= 9) or (B >= 9):
    print(":(")
else:
    print("Yay!")

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

Solution (Python):
a,b=[int(i) for i in input().split()]
if a<=8 and b<=8:
    print("Yay!")
else:
    print(":(")

Solution (Python):
A,B = map(int, input().split())

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

Solution (Python):
s=input();print(':('*(len(s)>3or'9'in s)or'Yay!')

Solution (Python):
A, B = map(int,input().split())

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

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

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

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

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

Solution (Python):
a, b = map(int, input().split())

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

else:
    print(":(")

Solution (Python):
A, B = [int(x) for x in input().split()]
print("Yay!" if max(A, B) <= 8 else ":(")

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

Solution (Python):
a,b = map(int,input().split())
print([":(","Yay!"][a<=8 and b<=8])

Solution (Python):
a,b = map(int, input().split())
print([":(", "Yay!"][a <= 8 and b <= 8])

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

Solution (Python):
from sys import stdin

A, B = [int(i) for i in stdin.readline().rstrip().split()]

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

Solution (Python):
"""
A - Happy Birthday!
"""

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

if a < b:
    temp = a
    a = b
    b = temp

piza = 16
for i in range(16):
    if (i % 2) == 0 and a != 0:
        piza -= 1
        a -= 1
    elif b != 0:
        piza -= 1
        b -= 1
    elif a == 0 and b == 0:
        break

if a != 0 or b != 0:
    print(":(")
else:
    print("Yay!")

Solution (Python):

"""
A - Happy Birthday!
https://abc100.contest.atcoder.jp/tasks/abc100_a

"""
import sys
from sys import stdin
input = stdin.readline


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


if __name__ == '__main__':
    main(sys.argv[1:])

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

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

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

Solution (Python):
a,b=map(int,input().split())

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

Solution (Python):
a, b = map(int,input().split())

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

Solution (Python):
list1 = list(map(int, input().split()))
a = list1[0]
b = list1[1]

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

Solution (Python):
A, B = [int(x) for x in input().split(' ')]

if A > 8 or B > 8:
    print(':(')
else:
    print('Yay!')

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

Solution (Python):
a=list(map(int,input().split()))

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

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

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

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

Solution (Python):
c=list(map(int, input().split( )))
if max(c)>8:
    print(':(')
else:
    print("Yay!")

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

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

Solution (Python):
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,datetime
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(input())
def inpl(): return list(map(int, input().split()))
def inpl_s(): return list(input().split())
atoz = [chr(i) for i in range(97,97+26)]

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

Solution (Python):


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

if __name__ == '__main__':
    main()

Solution (Python):



def inpl(): return list(map(int, input().split()))


a,b = inpl()

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

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

Solution (Python):
a,b = map(int, input().split())
print([':(','Yay!'][a<=8 and b<=8])

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

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

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

Solution (Python):
A, B = map(int, raw_input().split())

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

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

Solution (Python):
a, b = map(int, input().split())

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

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

Solution (Python):
A, B = (int(i) for i in input().split())
if A <= 8 and B <= 8:
  print('Yay!')
else:
  print(':(')

Solution (Python):
A, B = map(int, input().split())
ans = ["Yay!", ":("][max(A, B) > 8]

print(ans)

Solution (Python):
A, B = map(int, input().split())

print(
    ["Yay!", ":("][max(A, B) > 8]
    )

Solution (Python):

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

Solution (Python):
a,b = (int(_) for _ in input().split())
if(a <= 8 and b <=8):
    print("Yay!")
else:
    print(":(")

Solution (Python):
a, b = [int(i) for i in input().split(' ')]

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

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

Solution (Python):
A,B = input().split()
A=int(A)
B=int(B)

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

Solution (Python):
A, B = map(int, input().split())

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

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

Solution (Python):
def p(flg): return 'Yay!' if flg else ':('
a, b = map(int, input().split())
print(p(a <= 8 and b <= 8))

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

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

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

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

Solution (Python):
A,B=(int(i) for i in input().split())

C=max(A,B)
if C <= 8:
    print("Yay!")
else:
    print(":(")

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

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

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

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

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

Solution (Python):


def solve(A, B):
    if A > 8: return ":("
    if B > 8: return ":("
    return "Yay!"

if __name__ == "__main__":

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

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

Solution (Python):
a,b=map(int,input().split())

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

Solution (Python):
a, b  = list(map(int ,input().rsplit()))

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

Solution (Python):
x = list(map(int, input().split()))

if max(x) <= 8:
    print("Yay!")
else:
    print(":(")

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

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

Solution (Python):
A, B = map(int, input().split())

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

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

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

Solution (Python):
a,b = map(int,input().split())

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

Solution (Python):

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

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

Solution (Python):
a,b=(int(i) for i in input().split())
if a>8 or b>8:
    print(":(")
elif a<=8 and b<=8:
    print("Yay!")

Solution (Python):


from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


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


if __name__ == '__main__':
    main()

Solution (Python):
lis = list(map(int, input().split()))
if lis[0] <= 8 and lis[1] <= 8:
    print("Yay!")
else:
    print(":(")

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

Solution (Python):
x,y=map(int,input().split())

if x <= 8 and y <= 8 :
	print("Yay!")
else:
	print(":(")

Solution (Python):

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

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

Solution (Python):
x,y = map(int,input().split())
print(["Yay!",":("][x > 8 or y > 8])

Solution (Python):
A,B = map(int,input().split())

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

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

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

Solution (Python):
A, B = map(int, input().split())
print(["Yay!",":("][A>8 or B>8])

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

Solution (Python):
A,B = map(int,input().split())

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

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

Solution (Python):
A, B = map(int, input().split())

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

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

Solution (Python):
a, b = map( int, input().split() )

if a>8 or b>8:
  answer = ':('
else:
  answer = 'Yay!'

print(answer)

Solution (Python):

N, M = map(int, input().split())


if N > 8:
  print(":(")
elif M > 8:
  print(":(")  
else :
  print("Yay!")

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

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

Solution (Python):

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

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

Solution (Python):
a, b = [int(n) for n in input().split(" ")]

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

Solution (Python):
A, B = (int(i) for i in input().split())

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

else:
    print(":(")

Solution (Python):
import sys 
import math

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

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

Solution (Python):
a, b = map ( int , input().split() )

can_eat = True
if a > 8:
 can_eat = False
elif b > 8:
 can_eat = False

rslt = 'Yay!'
if not (can_eat): 
 rslt = ':('

print(rslt)

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

Solution (Python):
A, B = map(int, input().split())

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

Solution (Python):
amount = input()

lis = amount.split()

judge = 0

for num in lis:
    if int(num) <= 8:
        judge += 1

    else:
        pass

if judge == len(lis):
    print("Yay!")

else:
    print(":(")

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

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

Solution (Python):

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

Solution (Python):
A,B = map(int,input().rstrip().split())

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

Solution (Python):
a, b = (int(x) for x in raw_input().split())
print "Yay!" if a <= 8 and b <= 8 else ":("

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

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

Solution (Python):
n,m = list(map(int,input().split()))
if n <= 8 and m <= 8:
  print("Yay!")
else:
  print(":(")

Solution (Python):
def getinputdata():

    array_result = []    
    array_result.append(input().split(" "))

    flg = True

    try:
        while flg:

            data = input()

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = True

            else:

                flg = False
    finally:

        return array_result

arr_data = getinputdata()

a = int(arr_data[0][0])
b = int(arr_data[0][1])

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

Solution (Python):
def getinputdata():

    array_result = []    
    array_result.append(input().split(" "))

    flg = True

    try:
        while flg:

            data = input()

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = True

            else:

                flg = False
    finally:

        return array_result

arr_data = getinputdata()

a = int(arr_data[0][0])
b = int(arr_data[0][1])

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

Solution (Python):


def main():
    
    A, B = map(int, input().split())

    if A > 8 or B > 8:
        print(':(')
    else:
        print('Yay!')
    
if __name__ == '__main__':
    main()

Solution (Python):
import sys
import math
import collections
import itertools
import array
import inspect


sys.setrecursionlimit(10000)


def chkprint(*args):
    names = {id(v):k for k,v in inspect.currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg),'???')+' = '+repr(arg) for arg in args))


def to_bin(x):
    return bin(x)[2:]



dp = None

def main():
    a, b = [int(_) for _ in input().split()]

    if a >= 9 or b >= 9:
        print(":(")
    else:
        print("Yay!")

main()

Solution (Python):
a,b = map(int,input().split())

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

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

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

Solution (Python):
A, B = map(int, input().split())

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

Solution (Python):

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

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

Solution (Python):
A, B = map(int, input().split())

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

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

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

Solution (Python):


AGE = 16

a, b = [int(i) for i in input().split()]

print('Yay!' if a <= AGE / 2 and b <= AGE / 2 else ':(')

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

Solution (Python):

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

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

Solution (Python):

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

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

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

Solution (Python):
num = input()

num = num.split(" ")

for i in range(len(num)-1):
    if int(num[i]) <= 8 and int(num[i+1]) <= 8:
        print("Yay!")

    else:
        print(":(")

Solution (Python):
ab = map(int, input().split())
print("Yay!" if all([(lambda x: x <= 8)(v) for v in ab]) else ":(")

Solution (Python):
a, b = (int(i) for i in input().split())
if a > 8 or b > 8:
  print(':(')
else:
  print('Yay!')

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
a, b = map(int, input().split())

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

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

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

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

Solution (Python):
a, b = map(int, input().split())

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

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

Solution (Python):
A,B=[int(i) for i in input().split()]

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

Solution (Python):
A, B = map(int, input().split())

if A >8 or B > 8:
    print(':(')
else:
    print('Yay!')

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

Solution (Python):
print("Yay!" if max(list(map(int, input().split())))<9 else ":(")

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

Solution (Python):


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

if A > 8 or B > 8:
    print(":(")
else:
    print("Yay!")

Solution (Python):
a,b=input().split()
a=int(a)
b=int(b)

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

Solution (Python):
A, B = [int(item) for item in input().split()]

if A > 8 or B > 8:
    print(":(")
else:
    print('Yay!')

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

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

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

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

Solution (Python):
s=input();print(['Yay!',':('][len(s)>3or'9'in s])

Solution (Python):
s=input();print([':(','Yay!'][len(s)<4*('9'not in s)])

Solution (Python):
a,b = (int(i) for i in input().split())
if a < 9 and b < 9:
    print('Yay!')
else:
    print(':(')

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
ALL = input().split()
A = int(ALL[0])
B = int(ALL[1])
 
if A < 9 and B < 9:
    print('Yay!')
else:
    print(':(')

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

Solution (Python):
ALL = input().split()
A = int(ALL[0])
B = int(ALL[1])

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

Solution (Python):
l = list(map(int,input().split()))

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

Solution (Python):

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

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

Solution (Python):
AB = [int(i) for i in input().split()]
A, B = AB[0], AB[1]

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

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

Solution (Python):
X, Y = map(int, input().split(" "))

if X > 8 or Y > 8:
    print(":(")
else:
    print("Yay!")

Solution (Python):
A, B=map(int,input().split(' '))

if A>8 or B>8:
  print(':(')
else:
  print('Yay!')

Solution (Python):

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

Solution (Python):
A,B=map(int,input().split());print(':('*(A>8or B>8)or'Yay!')

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

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

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

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

Solution (Python):
a,b = map(int, input().split())

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

Solution (Python):
A,B = map(int,input().split())

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

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

Solution (Python):
a, b = map(int, input().split())


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


f(a, b)

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

Solution (Python):
l = input().split()
a = int(l[0])
b = int(l[1])

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

Solution (Python):
A, B = list(int(a) for a in input().split(" "))
if A <= 8 and B <= 8:
    print("Yay!")
else:
    print(":(")

Solution (Python):
a,b = map(int,input().split());
print((a>8 or b>8)and":("or"Yay!");

Solution (Python):
a,b=map(int,input().split());print((a>8or b>8)and':('or'Yay!')

Solution (Python):

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

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

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

Solution (Python):
def process(a, b):
    if a > 8 or b > 8:
        return ':('
    else:
        return 'Yay!'

def main():
    a, b = [int(i) for i in raw_input().strip().split()]
    print process(a, b)

if __name__ == '__main__':
    main()

Solution (Python):
[a,b]=[int(i) for i in input().split()]
if a<=8 and b<=8:
    print("Yay!")
else:
    print(":(")

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

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

Solution (Python):


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

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

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

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

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

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

Solution (Python):
a,b = map(int,input().split())

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

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

Solution (Python):
E = 1
s = 2
total = 16

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

if ((A - 1) * 2 + 1 > total):
    print(':(')

elif ((B - 1) * 2 + 1 > total):
    print(':(')

else:
    print('Yay!')

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

Solution (Python):
N = input().split(" ")
if int(N[0]) < 9 and int(N[1]) < 9:
    print("Yay!")
else:
    print(":(")

Solution (Python):
reader = list(map(int, input().split()))
A_num = reader[0]
B_num = reader[1]

if A_num <= 8 and B_num <= 8:
    print("Yay!")
else:
    print(":(")

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

Solution (Python):
args = (input())
a = int( args.split(" ")[0])
b = int(args.split(" ")[1])

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

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

Solution (Python):
A,B = map(int, input().split())
if (A-1) <= 16 - A and B-1 <= 16 -B:
    print ("Yay!")
else:
    print(":(")

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

Solution (Python):
data = list(map(int,input().split()))
a = data[0]
b = data[1]
if(a>8 or b>8):
	print(":(")
else:
	print("Yay!")

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

Solution (Python):
A, B = map(int, input().split())

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

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

Solution (Python):
A, B = map(int, input().strip().split())

if A > 8 or B > 8:
  print(":(")
else:
  print("Yay!")

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

Solution (Python):
a,b = map(int,input().split())

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

Solution (Python):
A, B = map(int, input().split())

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

Solution (Python):
A, B = map(int, input().split())

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

Solution (Python):
import sys


def solve(a,b):
    if a >= 9 or b >= 9:
        return ':('
    else:
        return 'Yay!'

def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

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

Solution (Python):
import sys


def solve(a, b):
    if a>8 or b>8:
        answer=':('
    else:
        answer='Yay!'
    return answer


def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

Solution (Python):
import sys


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



def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

Solution (Python):
import sys

def solve(a, b):
    if  a <= 8 and b <= 8 :
        return 'Yay!'
    else:
        return ':('
    
def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

Solution (Python):
import sys
x = sys.stdin.readline()

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

Solution (Python):
a = input().split()

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

Solution (Python):
a, b  = input().split()

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

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

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

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

Solution (Python):
A, B = map(int, input().split())

if A > 8 or B > 8:
    print(':(')
else:
    print('Yay!')

Solution (Python):
A, B = [int(i) for i in input().split()]
answer = { True: 'Yay!', False: ':(' }
print(answer[0 <= A <= 8 and 0 <= B <= 8])

Solution (Python):
a, b = map(int, input().split())

if a > 8 or b > 8:
    print(":(")
    exit()

print("Yay!")

Solution (Python):
A, B = map(int, raw_input().split())
if A < 9 and B < 9:
  print 'Yay!'
else:
  print ':('

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

Solution (Python):
a, b = map(int,  input().split())

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

Solution (Python):
a, b = map(int, input().split())

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

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