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


if __name__ == "__main__":
    main()

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

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


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

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

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

Submission status: Accepted

Solution code:
print([":(", "Yay!"][max(list(map(int, input().split()))) <= 8])

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
def input(): return sys.stdin.readline().rstrip()


def main():
    print('Yay!' if all(map(lambda x:True if int(x)<9 else False, input().split())) else ':(')
    


if __name__ == '__main__':
    main()

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 <= 16 /2 and b <= 16 / 2:
    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:
x,y=map(int,input().split())
if(x<=8 and y<=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())
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())
if max(a, b) - min(a, b)  <= 1:
  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:
A, B = map(int,input().rstrip().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)>0:
    if a+b+abs(a-b)<17:
        print("Yay!")
    else:
        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()
a=int(a)
b=int(b)
if a<=8:
  if b<=8:
    print("Yay!")
  else:
    print(":(")
else:
  print(":(")

Submission status: Accepted

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

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

print(ans)

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
x = input()
y = x.split()
a = int(y[0])
b = int(y[1])
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())
print('Yay!' if a<=8 and b<=8 else ':(')

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<=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 = (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!"][a<9 and b<9])

Submission status: Accepted

Solution code:
import sys


stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return map(int, stdin.readline().split())
def nl(): return list(map(int, stdin.readline().split()))


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


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

Submission status: Accepted

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

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 max(A, B) <= 8 else ':(')

Submission status: Accepted

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [list(input()) for _ in range(n)]
#a = [int(input()) for _ in range(n)]

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

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


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

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

    return


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if abs(a-b) <= 1:
    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:
print(["Yay!", ":(", ":("][sum([int(x) > 8 for x in input().split()])])

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

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

Submission status: Accepted

Solution code:
from fractions import gcd
from collections import Counter, deque, defaultdict
from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge
from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort
from itertools import product, combinations,permutations
from copy import deepcopy
import sys
sys.setrecursionlimit(4100000)



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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
tmp = input().split(" ")
print(":(") if int(tmp[0]) > 8 or int(tmp[1]) > 8 else print("Yay!")

Submission status: Accepted

Solution code:
n,k=map(int,input().split())
if abs(n-k)>2:
  print(":(")
else:
  print("Yay!")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

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

Submission status: Accepted

Solution code:
from sys import stdin
nii=lambda:map(int,stdin.readline().split())
lnii=lambda:list(map(int,stdin.readline().split()))

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

if N<=8 and M<= 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())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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 max(A, 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())

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

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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


if __name__ == "__main__":
    solve()

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

Submission status: Accepted

Solution code:
print([':(','Yay!'][all(i<9 for i in map(int,input().split()))])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

if not (1 <= A <= 16 and 1 <= B <= 16 and (A + B <= 16)) :
    sys.exit()

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

Submission status: Accepted

Solution code:
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

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

Submission status: Accepted

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

arr = ['a']
A = A - 1
for i in range(1,16):
  if arr[-1] == 'a':
    if B >= 1:
      B = B-1
      arr.append('b')
    elif C >= 1:
      C = C-1
      arr.append('c')
  elif arr[-1] == 'b':
    if A >= 1:
      A = A-1
      arr.append('a')
    elif C >= 1:
      C = C-1
      arr.append('c')
  elif arr[-1] == 'c':
    if A >= 1:
      A = A-1
      arr.append('a')
    elif B >= 1:
      B = B-1
      arr.append('b')
    elif C >= 1:
      C = C-1
      arr.append('c')
if len(arr) == 16:
  print("Yay!")
else:
  print(":(")

Submission status: Accepted

Solution code:
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext
# input = sys.stdin.readline 
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_list(N): return [s_list() for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
def gcd(*numbers): reduce(math.gcd, numbers)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
count = 0
ans = 0

R, D = I()
if R <= 8 and D <= 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(":(")
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 and B<=8:
	print("Yay!")
else:
	print(":(")

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10000000)
MOD = 10 ** 9 + 7
INF = 10 ** 15

def main():
    A,B = map(int,input().split())
    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 a<9 and b<9 else ":(")

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:
print(':('*(len(s:=input())>3or'9'in s)or'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)&(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) 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 -*-

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:
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10**9)
mod = 10**9+7

A,B = I()
if A > 8 or B > 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().split())
if a<9>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:
import sys
def input(): return sys.stdin.readline().strip()


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


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

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

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import numpy as np

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 abs(a-b)>2:
  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().split())

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