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:
list=input().rstrip().split() 
A=int(list[0]) 
B=int(list[1])
if max(A,B)>=9:
    print(':(')
else:
    print('Yay!')

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
if a[0] <= 8:
    if a[1] <= 8:
        print("Yay!")
    else:
        print(":(")
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:
import sys,collections,math;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

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

Submission status: Accepted

Solution code:
#!/Library/Frameworks/Python.framework/Versions/3.5/bin/python3

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

if max(a, 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:
A, B = map(int, input().split())
if A <= 8 and B <= 8 and A + B:
	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 = input().split()

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

Submission status: Accepted

Solution code:
import sys

cin = sys.stdin
# cin = open("in.txt", "r")


def line2N():
    return map(int, cin.readline().split())

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

Submission status: Accepted

Solution code:
text = input().split()
a = (int)(text[0])
b = (int)(text[1])

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

Submission status: Accepted

Solution code:
import sys
import math
import itertools
from heapq import heapify, heappop, heappush
from sys import stdin, stdout, setrecursionlimit
from bisect import bisect, bisect_left, bisect_right
from collections import defaultdict, deque


# d = defaultdict(lambda: 0)
# setrecursionlimit(10**7)
# inf = float("inf")


##### stdin ####
def LM(t, r): return list(map(t, r))
def R(): return stdin.readline()
def RS(): return R().split()
def I(): return int(R())
def F(): return float(R())
def LI(): return LM(int,RS())
def LF(): return LM(float,RS())
def ONE_SL(): return list(input())
def ONE_IL(): return LM(int, ONE_SL())
def ALL_IL(): return LM(int,stdin)


##### tools #####
def ap(f): return f.append
def pll(li): print('\n'.join(LM(str,li)))
def pljoin(li, s): print(s.join(li))


##### Library ####


##### main #####
def main():
    A,B = LI()
    
    ans = ""
    if A>8 or B>8:
        ans = ":("
    else:
        ans = "Yay!"

    print(ans)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, math
from sys import stdin, stdout

rem = 10 ** 9 + 7
sys.setrecursionlimit(10 ** 6)
take = lambda: map(int, stdin.readline().split())


a,b=take()
if a<=8 and b<=8:
    print 'Yay!'
    exit()
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:
'''input
4 5
'''
a,b = map(int,raw_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 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 = list(map(int, input().split()))

rest = max(A, B) - min(A, B)

if (16 - (A + B)) / 2 >= rest:
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

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


def ea(a, b):
    if a > 8 or b > 8:
        return False
    else:
        return True


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

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

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    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:
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:
def main():
    A, B = map(int, raw_input().split())
    if A <= 8 and B <= 8:
        print("Yay!")
    else:
        print(":(")


if __name__ == '__main__':
    main()

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(" "))
# B = int(input())

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

Submission status: Accepted

Solution code:
AB=input()
AB=AB.rstrip().split(" ")
A=int(AB[0])
B=int(AB[1])

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

if(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:
n = input().split()

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 
import math
import sys
import itertools
import numpy as np

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

Submission status: Accepted

Solution code:
lA=list(map(int,input().split()))
A=lA[0]
B=lA[1]
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:
# 整数の入力
A, B = list(map(int, input().split(" ")))


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

Submission status: Accepted

Solution code:
from sys import stdin

A, B = map(int, stdin.readline().rstrip().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<9 and B<9:
  print("Yay!")
else:
  print(":(")

Submission status: Accepted

Solution code:

#a = int(input())
#b = int(input())
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 or b>8:
    print(':(')
else:
    print('Yay!')

Submission status: Accepted

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

res = max(A, B) - min(A, B)
if (res + A + B) > 16:
    print(':(')
else:
    print('Yay!')

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

    if A * 2 > 16 or B * 2 > 16:
        print(":(")
    else:
        print("Yay!")


if __name__ == '__main__':
    main()

Submission status: Accepted

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

if __name__ == "__main__":
    print(main())

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 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 = input().split(" ")
a = int(a)
b = int(b)

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
if __name__ == "__main__":
    A, B = list(map(int, (input().split(' '))))
    if A >= 9 or B >= 9:
        print(":(")
        sys.exit()
    print("Yay!")

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys,collections,itertools,re,math,fractions,decimal,random,array,bisect,heapq

# decimal.getcontext().prec = 50
# sys.setrecursionlimit(10000)
# MOD = 10**9 + 7

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 #%d\n"%f.case, solve(f)
            try:
                f.next_case()
            except StopIteration:
                break
    else:
        print solve(f)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#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())

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import re

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

A = int(inp[0])
B = int(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 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:
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 = [int(i) for i in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = list(map(int,input().split()))
if max(a,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:
a, b = [int(i) for i in input().split()]

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

Submission status: Accepted

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

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:
#! /usr/bin/env python3

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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(":(")

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

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

Submission status: Accepted

Solution code:
a,b = [int(num) for num 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 or B>8:
	print(':(')
else:
	print('Yay!')

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, input().split())

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

else:
    print(":(")

Submission status: Accepted

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

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

if __name__=="__main__":
    solve()

Submission status: Accepted

Solution code:
# -*- 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())

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
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()

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

Submission status: Accepted

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

if A < B:
    A, B = B, A

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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(_) for _ 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 or b>8):
	print(':(')
else:
	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:
a, b = map(int, input().strip().split(' '))

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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 abs(A - B) >= 2:
    print(':(')
else:
    print('Yay!')

Submission status: Accepted

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
import java.util.Arrays;

public class Main {
	public static void main(final String[] args){
    
    final Scanner sc = new Scanner(System.in);
    final List<Integer> list = new ArrayList<>();
    //final List<Integer> list2 = new ArrayList<>();
    //final List<Long> list3 = new ArrayList<>();

    int a = sc.nextInt();
    int b = sc.nextInt();

    if(a < 9 || b < 9){
        System.out.println("Yay!");
    }else{
        System.out.println(":(");
    }

    

    




    







}
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
if int(input())>8 or int(input())>8:
  print(":(")
else:
  print("Yay!")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(["Yay!", ":(", ":("][sum([x > 8 for x in input().split()])])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

	if  0<a<17 and 0<b<17 and a+b<17:
   		 print('Yeh')
	else:
    	print(':(')
if __name__=='__main__':
	main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N,M = map(int,input().split()))

if N<=8 and M<= 8:
  print("Yay!")
else:
  print(":(")

Submission status: Runtime Error

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

if a+b=<16:
  print('Yay!')
else:
  print(':(')

Submission status: Runtime Error

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