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.



Sample input:
5 4


Sample output:
Yay!

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#encoding:utf-8

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

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

else:
    print(":(")

Submission status: Accepted

Solution code:
numA,numB = map(int,input().split())
if(numA <=8 and numB <= 8):
    print('Yay!')
else:
    print(':(')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B=map(int, input().split(' '))
if A+B<=8:
    print('Yay!')
elif abs(A-B)<=(16-min([A,B])*2)/2:
    print('Yay!')
else:
    print(':(')

Submission status: Accepted

Solution code:

AB =  list(int(i) for i in input().split())

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

Submission status: Accepted

Solution code:

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

if x[0]<=x[1]:
    a=x[1]-x[0] 
    if 16-2*x[0]-2*a>=0:
        print('Yay!')   
    else:
     print(':(')
    
if x[0]>x[1]:
    a=x[0]-x[1] 
    if 16-2*x[1]-2*a>=0:
        print('Yay!')   
    else:
     print(':(')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
c = input().split()

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

if a > 8:
    print(':(')

elif b > 8:
    print(':(')

elif a+b > 16:
    print(":(")

else:
    print("Yay!")

Submission status: Accepted

Solution code:
s=input().split()
if int(s[0])<=8 and int(s[1])<=8:
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b = map(int, raw_input().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a, b = map(int, input().split())

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

Submission status: Accepted

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

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

else:
  print(":(")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!python
# -*- coding: utf-8 -*-


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

if a > b:
    tmp = a
    a = b
    b = tmp

r = 16 - 2 * a
b = b - a

if r // 2 >= b:
    print('Yay!')
else:
    print(':(')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_line = map(int,raw_input().split())
A = input_line[0]
B = input_line[1]

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

Submission status: Accepted

Solution code:
#coding : utf8

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

Submission status: Accepted

Solution code:
l = input().split()
l[0]=int(l[0])
l[1]=int(l[1])
if l[0]<=8 and l[1]<=8:
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = [int(x) for x in input().split()]

big = max((a,b))
small = min((a,b))

# 互いに一切れずつ取った残り
last = 16 - small*2
if(last % 2 == 1):
    last += 1

if(last >= (big-small)*2):
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = (int(i) for i in input().split())

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import calendar as cal

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

if a >= b:
    l = a
    s = b
else:
    l = b
    s = a

d = l - s

e = 16 - s*2

if e/2 >= d:
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
A,B=map(int, input().split())
cake_list=[0 for i in range(17)]
for i in range(1,17):
    if cake_list[i-1]!=1 and cake_list[i]==0 and cake_list.count(1)<A:
        cake_list[i]=1
    if cake_list[i-1]!=-1 and cake_list[i]==0 and cake_list.count(-1)<B:
        cake_list[i]=-1
if cake_list.count(1)==A and cake_list.count(-1)==B:
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

Solution code:
import sys

tmp = [int(i) for i in input().split()]

a = tmp[0]
b = tmp[1]

if a <= 8 and b <= 8:
    print('Yay!')
    sys.stdout.flush()
else:
    print(':(')
    sys.stdout.flush()

Submission status: Accepted

Solution code:
import sys

tmp = [int(i) for i in input().split()]

a = tmp[0]
b = tmp[1]

if a <= 8 and b <= 8:
    print('Yay!')
    sys.stdout.flush()
else:
    print(':(')

Submission status: Accepted

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

Submission status: Accepted

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

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

else:
    print(":(")

Submission status: Accepted

Solution code:
ins = [ int(i) for i in raw_input('').split()]
A, B = ins 
#A, B = 4, 4

flag = True

if 16 < A or A < 1 : 
    flag = False

if 16 < B or B < 1 : 
    flag = False

if 16 < A+B or 8 < A or 8 < B:
    flag = False

if flag:
    print('Yay!')
else:
    print(':(')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = raw_input().split()
 
A = l[0]
B = l[1]

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
number = input()
a = number.split()

A=int(a[0])
B=int(a[1])

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
inp = list(map(int, input().split()))
A, B = inp[0], inp[1]

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
ans = ":("
if 9 > a and 9 > b:
    ans = "Yay!"
print(ans)

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

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

else:
    print(":(")

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys


def check(A, B):
    if A > 8 or B > 8:
        return False
    return True


ret = check(*tuple(map(int, sys.stdin.readline().split())))
if ret:
    print('Yay!')
else:
    print(':(')

Submission status: Accepted

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

print(s)

Submission status: Accepted

Solution code:
#!/bin/python

import os
import sys


def solution(A, B):
    if A>8 or B>8:
        return ":("
    return "Yay!"
    
if __name__ == '__main__':
    
    bnm = raw_input().split()

    A = int(bnm[0])

    B = int(bnm[1])

    result = solution(A,B)

    print str(result)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# https://abc100.contest.atcoder.jp/tasks/abc100_a
# A - Happy Birthday!

# A_Happy_Birthday.py

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
ip = input().split()
usdata = []
usdata.append(int(ip[0]))
usdata.append(int(ip[1]))
flag = 0

for i in usdata:
    if i >= 9:
        flag = 1
    else:
        pass

if flag == 1:
    print(":(")
else:
    print("Yay!")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
input_line = input().split()

cake_a = int(input_line[0])
cake_b = int(input_line[1])

if cake_a > 8 or cake_b > 8:
    print(":(")
else:
    print("Yay!")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

x = 16 - min(A, B) * 2
y = max(A, B) - min(A, B)
if y * 2 <= x:
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

Solution code:
a = map(int, raw_input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A,B=[int(a) for a in input().split()]
if A>8 or B>8 :
   print(":(")
else:
   print("Yay!")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b = (int(i) for i in input().split())

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

Submission status: Accepted

Solution code:
# coding: utf-8
a,b=map(int,input().split())
if a<9and b<9:
    print('Yay!')
else:
    print(':(')

Submission status: Accepted

Solution code:
a, b = [int(x) for x in raw_input().split()]

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

Submission status: Accepted

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

if 17 <= A+B or 8<A or 8<B:
	print(":(")
else:
	print("Yay!")

Submission status: Accepted

Solution code:
inp = input().split()


for i in range(len(inp)):
    inp[i] = int(inp[i])

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A,B=map(int, input().rstrip().split())
ans=str()
if max(A,B)<9:
    ans="Yay!"
else:
    ans=":("
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
input = input().split()

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

Submission status: Accepted

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

c = a + b

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

Submission status: Accepted

Solution code:
l=input().split()
a=int(l[0])
b=int(l[1])
if a<9 and b<9:
    print('Yay!')
else:
    print(':(')

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(16):
    if i % 2 == 0 and A > 0:
        A -= 1
    elif i % 2 == 1 and B > 0:
        B -= 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

mi = min(a,b)
ma = max(a,b)

if(ma - mi <= 8-mi):
    print('Yay!')
else:
    print(':(')

Submission status: Accepted

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

pre = 0

if A < B:
  big = B
  small = A
else:
  big = A
  small = B

if A + B > 16:
  print(":(")
else:
  for i in range(16):
    if pre == 0:
      big -= 1
      pre = 1
    else:
      small -= 1
      pre = 0
if small <= 0 and big <= 0:
  print("Yay!")
else:
  print(":(")

Submission status: Accepted

Solution code:
# your code goes here
A,B = map(int,input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

big   = max(A,B)
small = min(A,B)
if (16 - 2*small)//2 >= big -small:
  print("Yay!")
else:
  print(":(")

Submission status: Accepted

Solution code:
l = map(int, raw_input().split())
a = l[0]
b = l[1]

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

Submission status: Accepted

Solution code:
if max(map(int, input().split())) > 8:
    print(':(')
else:
    print('Yay!')

Submission status: Accepted

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

for i in range(65536*4+1):
  x = bin(i)[2:].zfill(a+b)

  if x.count('1') == a and x.count('0') == b and '00' not in x and '11' not in x:
    print("Yay!")
    exit(0)
print(":(")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = (int(i) for i in input().split())

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import bisect
import heapq
import math
import random
import sys
from collections import Counter, defaultdict
from decimal import ROUND_CEILING, ROUND_HALF_UP, Decimal
from functools import lru_cache, reduce
from itertools import combinations, combinations_with_replacement, product, permutations

sys.setrecursionlimit(10000)


def read_int():
    return int(input())


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


def read_float():
    return float(input())


def read_float_n():
    return list(map(float, input().split()))


def read_str():
    return input()


def read_str_n():
    return list(map(str, input().split()))


def error_print(*args):
    print(*args, file=sys.stderr)


def mt(f):
    import time

    def wrap(*args, **kwargs):
        s = time.time()
        ret = f(*args, **kwargs)
        e = time.time()

        error_print(e - s, 'sec')
        return ret

    return wrap


@mt
def slv(A, B):
    if A <= 8 and B <= 8:
        return 'Yay!'
    else:
        return ':('


def main():
    # A = read_int()
    # B = read_int()
    A, B = read_int_n()
    print(slv(A, B))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
count = 0
for i in range(16):
  if count == 0:
    A -= 1
    count += 1
  else:
    count -= 1
    B -= 1
if A <= 0 and B <= 0:
	print('Yay!')
else:
  print(':(')

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
a, b = (int(x) for x in input().split())
print('Yay!' if max(a, b) <= 8 else ':(')

Submission status: Accepted

Solution code:
def get_result(a, b):
    if(a > 8) or (b > 8):
        return False

    if a == 8:
        if b <= 8:
            return True
        else:
            return False

    if b == 8:
        if a <= 8:
            return True
        else:
            return False

    return True


x, y = (int(i) for i in input().split())

if get_result(x, y):
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

Solution code:
def m():
    a, b = map(int, input().split())
    if a <=8 and b <= 8:
        return "Yay!"
    return ":("

print(m())

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Z = max(A,B)

if Z > 8:
    print(":(")

else :
    print("Yay!")

Submission status: Accepted

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

y = 'Yay!'
n = ':('

if a <= 8 and b <= 8:
    print(y)
else:
    print(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import exit, setrecursionlimit, stderr
from functools import reduce
from itertools import *
from collections import defaultdict
from bisect import bisect

def read():
  return int(input())

def reads():
  return [int(x) for x in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
iA, iB = map(int, input().split())

if iA > 8:
    print (":(")
elif iB > 8:
    print (":(")
else:
    print ("Yay!")

Submission status: Accepted

Solution code:
#! /usr/bin/env python3

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
cakes = [int(i) for i in input().split()]

if cakes[0] > 8 or cakes[1] > 8:
    print(":(")
else:
    print("Yay!")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().rstrip().split(" "))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin, stdout
from math import sqrt
from collections import defaultdict
#t = int(stdin.readline().strip())
#R, L, C, Vin = [float(x) for x in stdin.readline().strip().split()]
A, B = [int(x) for x in stdin.readline().strip().split()]
print("Yay!" if (A <= 8 and B <= 8) else ":(")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = (int(i) for i in input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#Happy Birthday!
A,B = map(int, input().split())

if A > 8 or B > 8:
	print(":(")
	exit()
if abs(A-B) > 2:
	print(":(")
	exit()
else:
	print("Yay!")

Submission status: Accepted

Solution code:
str =  input()
a,b = str.split(" ")

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# https://abc100.contest.atcoder.jp/tasks/abc100_a


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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

a,b = na()

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

Submission status: Accepted

Solution code:
a, b = [int(v) for v in input().rstrip().split()]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())		# 5 7

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if A > 8:
    print(":(");
    exit()
if B > 8:
    print(":(");
    exit()
print("Yay!")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# codinf: utf-8

def check(a,b):
    if a <= 8 and b <= 8:
        return 1
    else:
        return 0


if __name__ == "__main__":
    a,b = map(int, input().split(" "))
    result = [":(","Yay!"]

    print(result[check(a,b)])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math
import numpy as np

line = input().split()
A = int(line[0])
B = int(line[1])

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
A,B=map(int,input().split())
if A<9 and B<9:
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

Solution code:
A,B = [int(i) for i in input().split()]
if A<9 and B<9:
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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


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

if __name__ == "__main__":
        main()

Submission status: Accepted

Solution code:
from sys import stderr
from functools import reduce
from operator import add
def f(): return [int(i) for i in input().split()]
def debug(*x): stderr.write(reduce(add,repr(x)).strip("()\',")+'\n')

a,b = f()

print("Yay!") if abs(a-b) <= 1 else print(":(")

Submission status: Accepted

Solution code:
inp = input().split()

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

if a>8 or b>8:
    print(':(')

else:
    print('Yay!')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin, stdout
input = lambda: stdin.readline().rstrip()
println = stdout.write

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

    if all((A <= 8, B <= 8)):
        println('Yay!\n')
    else:
        println(':(\n')

main()

Submission status: Accepted

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