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

def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline

def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    input_raw = read_func().strip().split()
    [A, B] = [int(input_raw[0]), int(input_raw[1])]
    

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


if __name__ == '__main__':
    main()

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

Solution (Python):
import sys
if __name__ == "__main__":
    A, B = list(map(int, (input().split(' '))))
    if A >= 9 or B >= 9:
        print(":(")
        sys.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())
print("Yay!" if a <= 8 and b <= 8 else ":(")

Solution (Python):
from sys import stdin


def main():
    A, B = [int(x) for x in stdin.readline().rstrip().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())
if a > 8 or b > 8:
    print(':(')
else:
    print('Yay!')

Solution (Python):


import sys,collections,itertools,re,math,fractions,decimal,random,array,bisect,heapq





def solve(f):
    a, b = f.read_int_list()
    if a > 8 or b > 8:
        return ":("
    else:
        return "Yay!"


class Reader(object):
    def __init__(self, filename=None):
        self.file = open(filename) if filename is not None else None
        self.case = 1

    def __readline(self):
        return self.file.next().strip() if self.file else raw_input()

    def next_case(self):
        self.file.next()
        self.case += 1

    def read_int(self): return int(self.__readline())
    def read_float(self): return float(self.__readline())
    def read_long(self): return long(self.__readline())
    def read_decimal(self): return decimal.Decimal(self.__readline())
    def read_str(self): return self.__readline()

    def read_int_list(self): return map(int, self.__readline().split())
    def read_float_list(self): return map(float, self.__readline().split())
    def read_long_list(self): return map(long, self.__readline().split())
    def read_decimal_list(self): return map(decimal.Decimal, self.__readline().split())
    def read_str_list(self): return self.__readline().split()

if __name__ == '__main__':
    filename = sys.argv[1] if len(sys.argv) > 1 else None
    f = Reader(filename)
    if f.file:
        while True:
            print "Case 
            try:
                f.next_case()
            except StopIteration:
                break
    else:
        print solve(f)

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

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

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

if d[0] > 8 or d[1]>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):
import re

inp = re.split(" ",input())

A = int(inp[0])
B = int(inp[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 = 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 or b > 8:
  print(':(')
else:
  print('Yay!')

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

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

Solution (Python):
a, b = [int(i) for i in 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):
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 < 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):
x,y=map(int,input().split())
if x >8 or y>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 or b > 8:
    print(":(")
else :
    print("Yay!")

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

Solution (Python):
from sys import stdin
ans = 'Yay!'
a = map(int,stdin.readline().split())
if max(a) > 8:
 ans = ':('
print ans

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

Solution (Python):
Data = input()

import re

Shift = re.split(" ",Data)
A = int(Shift[0])
B = int(Shift[1])

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):
A,B=map(int,input().split())

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

Solution (Python):
a,b = [int(num) for num in 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=list(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) <= 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):



def solve():
    a, b = map(int, input().split())
    print("Yay!" if abs(a - b) <= 1 else ":(")

if __name__=="__main__":
    solve()

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

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

Solution (Python):

def inpl(): return map(int, input().split())
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():
    a, b = list(map(int, raw_input().split()))
    if a + b > 16 or a > 8 or b > 8:
        print(':(')
        return
    print('Yay!')


if __name__ == '__main__':
    main()

Solution (Python):
def ketanowa(p):
    ans = 0
    p = str(p)
    for i in p:
        ans += int(i)
    return ans


def main():
    temp1 = input()
    temp1=temp1.split(" ")
    n1 = int(temp1[0])
    n2 = int(temp1[1])
    if n1 <= 8 and n2 <= 8:
        print("Yay!")
    else:
        print(":(")


if __name__ == '__main__':
    main()

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

Solution (Python):
def inpl(): return list(map(int, input().split()))
A, B = inpl()
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 = 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:
    A, B = B, A

if A > 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 + B <= 16 and abs(A - B) <= 1:
    print('Yay!')
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())
print("Yay!" if max(a,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 = [int(_) for _ in 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=[int(i) for i in input().split()]

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

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

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 998244353
dd = [(0,-1),(1,0),(0,1),(-1,0)]
ddn = [(0,-1),(1,-1),(1,0),(1,1),(0,1),(-1,-1),(-1,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 pf(s): return print(s, flush=True)


def main():
    a,b = LI()
    if a+b <= 16 and a < 9 and b < 9:
        return 'Yay!'
    return ':('


print(main())

Solution (Python):
A, B = map(int, input().split())
X = max(A, B)
if X <= 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 max(A, B) <= 8 else ':(')

Solution (Python):
a,b = map(int,raw_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(' '))


if abs(A - B) >= 2:
    print(':(')
else:
    print('Yay!')

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

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

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

Solution (Python):
n, m = map(int, input().split())

print("Yay!" if n <= 8 and m <= 8 else":(")

Solution (Python):
A, B = map(int, open(0).read().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):
def read_ints():
    return [int(c) for c in input().split()]


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


if __name__ == '__main__':
    main()

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