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=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 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(x) for x in input().split()]
print("Yay!" if A < 9 and B < 9 else ":(")

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

Solution (Python):
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] 
list1_1 = list1[1] 

if list1_0 > 8 or list1_1 > 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())
print("Yay!" if A<=8 and B<=8 else ":(")

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

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

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

Solution (Python):
def solve(string):
    a, b = map(int, string.split())
    return "Yay!" if a <= 8 and b <= 8 else ":("


if __name__ == '__main__':
    print(solve(input()))

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

if abs(A - B) <= (16 - (A + B))/2:
    print('Yay!')
else:
    print(':(')

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

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

Solution (Python):
A,B = tuple(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(abs(A-B) <= 1):
  print('Yay!')
else:
  print(':(')

Solution (Python):
def happy_birthday(A: int, B: int) -> bool:
    return A <= 8 and B <= 8


if __name__ == "__main__":
    A, B = map(int, input().split())
    yes = happy_birthday(A, B)
    print('Yay!' if yes 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<=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 = input().split()
if int(a[0]) <= 8:
  if int(a[1]) <=8:
    print('Yay!')
  else:
    print(':(')
else:
  print(':(')

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

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

Solution (Python):

import sys


def solve(A: int, B: int):
    if A>8 or B>8:
        print(':(')
    else:
        print('Yay!')
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(A, B)

if __name__ == '__main__':
    main()

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())
print([':(', 'Yay!'][a <= 8 and b <= 8])

Solution (Python):
def solve():
    A,B=map(int,input().split())
    if A <= 8 and B <= 8:
        return True
    return False

if solve():
    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 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 max(A,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 <= 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())
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):
print(['Yay!',':(',':('][sum([int(i)//9 for i in input().split()])])

Solution (Python):

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

Solution (Python):
a,b = (int(x) for x 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 = [ int(x) for x in input().split() ]

ans = max(A, B) <= 8

print("Yay!" if ans 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 a<=8 and b<=8:
    print("Yay!")
else:
    print(":(")

Solution (Python):
from sys import stdin
A,B=[int(x) for x in stdin.readline().rstrip().split()]
if A > 8 or B > 8:
    print(":(")
else:
    print("Yay!")

Solution (Python):
L = list(map(int, input().split()))
if max(L) <= 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) < 9 and int(B) < 9:
    print("Yay!")
else:
    print(":(")

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

if a>8 or b>8:
  print(':(')
  exit()
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) & (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):
from sys import stdin
a,b=[int(x) for x in stdin.readline().rstrip().split()]
if a>8 or b>8:
  print(':(')
else:
  print('Yay!')

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


if __name__ == "__main__":
    main()

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("Y:a(y !"[a>8or b>8::2])

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):
import sys

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


if __name__ == '__main__':
  main()

Solution (Python):
from sys import stdin
a,b=[int(x) for x in stdin.readline().rstrip().split()]
if(a<=8 and b<=8):
    print("Yay!")
else:
    print(":(")

Solution (Python):
a = [int(i) for i in input().split()]
if a[0]<=8 and a[1]<=8:
  print('Yay!')
elif a[0] > 8 or a[0] > 8:
    print(':(')
elif a[0]+a[1] == 16 and a[0]>7 or a[1] > 7:  
  print(':(')

Solution (Python):
def readints():
    return [int(x) for x in input().split()]

A, B = readints()

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):
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):
def main() -> None:
    A, B = map(int, input().split())
    print("Yay!" if f(A, B) else ":(")


def f(A: str, B: str) -> bool:
    if A > 8 or B > 8:
        return False
    else:
        return True


if __name__ == '__main__':
    main()

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):
N = list(map(int,input().split()))
if max(N) < 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):
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 <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')

Solution (Python):
int_a, int_b = map(int, input().split())

if int_a > 8 or int_b > 8:
    print(":(")
else:
    print("Yay!")

Solution (Python):
A,B = map(int,input().split())
print(":(") if A>8 or B>8 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())
ans = 'Yay!'
if a > 8 or b > 8:
  ans = ':('
print(ans)

Solution (Python):
A,B=map(int,input().split())
if A<=8:
  if B<=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):
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 <= 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 and B <= 8):
  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 = 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):
print("Yay!" if max(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= map(int, input().split())
if a <= 8 and b <= 8:
    ans = "Yay!"
else:
    ans = ":("
print(ans)

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 < 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):
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(lines):
    A,B = map(int, lines.pop(0).split(' '))
    if A <= 8 and B <= 8:
        print('Yay!')
    else:
        print(':(')















lines = [x.strip() for x in sys.stdin.readlines()]




solve(lines)

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 <= 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 > 8 or b > 8:
  print(":(")
else:
  print("Yay!")

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

if max(A,B)*2>16:
    print(':(')
else:
    print('Yay!')

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


main()

Solution (Python):
A,B=map(int,input().split())
dame=1
if(A<=8):
  if(B<=8):
    print("Yay!")
    dame=0
if(dame):
  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()]
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<=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())
print("Yay!" if A<=8 and B<=8 else ":(")

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

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

if(all(l[x] <= 8 for x in range(len(l)) )):
  print('Yay!')
else:print(':(')

Solution (Python):
""" AtCoder """

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

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

Solution (Python):
ab=[int(x) for x in input().split()]
if(ab[0]<=8 and ab[1]<=8):
    print("Yay!")
else:
    print(":(")

Solution (Python):

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

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

print(x)

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())
print("Yay!" if a<=8 and b<=8 else ":(")

Solution (Python):


def main():
    na = list(map(int, input().split()))
    A, B = na[0], na[1]


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


if __name__ == '__main__':
    main()

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

Solution (Python):
A = [int(i) for i in input().split()]
if max(A) <= 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<9 and B<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 = map(int, str(input()).split(' '))
print("Yay!" if abs(A - B) <= 16 - (A + B) else ":(")

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

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):
t=input();print(["Yay!",":("][len(t)>3or"9"in t])

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())

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

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 and b<=8:
    print("Yay!")
else:
    print(":( ")

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

Solution (Python):
print([':(','Yay!'][eval('max('+input().replace(' ',',')+')')<=8])

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

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

if A <= 8 and B <= 8:
   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 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<9 and B<9):
    print('Yay!')
else:
    print(':(')

Solution (Python):



def main():
    a, b = map(int, input().split())

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


if __name__ == '__main__':
    main()

Solution (Python):
a = [int(i) for i in input().split()] 
if a[0]<= 8 and a[1]<=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 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<=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<=8 and b<=8:
  print("Yay!")
else:
  print(":(")

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

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


if __name__ == '__main__':
    main()

Solution (Python):
a = list(map(int, input().split()))
a.sort()
if a[1] < 9:
    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 = list(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=map(int,input().split())
print(":(" if a>8 or b>8 else "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(" "))
if a > 8 or b > 8:
  print(":(")
else:
  print("Yay!")

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 A <= 8 and B <= 8:
  print("Yay!")
else:
  print(":(")

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

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

Solution (Python):



def main():
    """Function."""
    a, b = map(int, input().split())

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


if __name__ == "__main__":
    main()

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

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


abc100_a()

Solution (Python):
num = input().split(' ')
a = int(num[0])
b = int(num[1])
if a <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')

Solution (Python):
input_lines = input()
if int(input_lines.split(" ")[0])<=8 and int(input_lines.split(" ")[1])<=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 = map(int, input().split())
print("Yay!") if a <= 8 and b <= 8 else print(":(")

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

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 = list(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:
    ans = 'Yay!'
else:
    ans = ':('

print(ans)

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 <= 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:
    print(":(")
elif 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) 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()]
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):
ab = list(map(int, input().split()))
a = ab[0]
b = 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):
A, B = map( int, input().split())

if( A <= 8 and B <= 8):
  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())
print(":(" if a >8 or b > 8 else "Yay!")

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

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

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

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

if A > 8:
    print(":(")
    exit()

if B > 8:
    print(":(")
    exit()

print("Yay!")

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



if int(a)>8 or int(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>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 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):
l = list(map(int, input().split()))
if max(l) <= 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 = 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())

if max(a,b) <= 8:
    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):
a, b = list(map(int, input().split()))

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

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

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

Solution (Python):
print(':(') if 0 in[0 for i in input().split() if int(i)>8] else print('Yay!')

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

Solution (Python):
a,b=map(int,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())
if max(a,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 <= 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):
n=[int(i) for i in input().split(" ")]
print("Yay!" if n[0]<=8 and n[1]<=8 else ":(")

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):

if all([True if i <= 8 else False for i in list(map(int, input().split()))]):
    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(_) for _ in input().split()]
if a > 8 or b > 8:
    print(':(')
else:
    print('Yay!')

Solution (Python):
a,b = map(int,input().split())
print('Yay!') if a <= 8 and b <= 8 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())
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):
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())
print("Yay!") if a <= 8 and b <= 8 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):
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 max(A,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=list(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 or b > 8:
	print(":(\n")
else:
	print("Yay!")

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 = map(int,input().split())
if (a <= 8) and (b <= 8):
    print('Yay!')
else:
    print(':(')