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

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


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A = [int(i) for i in input().split()]
if max(A) <= 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 or B > 8:
  print(":(")
else:
  print("Yay!")

Submission status: Accepted

Solution code:
A, B = map(int, str(input()).split(' '))
print("Yay!" if abs(A - B) <= 16 - (A + B) else ":(")

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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


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 = [int(i) for i in input().split()] 
if a[0]<= 8 and a[1]<=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:
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(":(")
elif A<=8 and B<=8:
    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 = list(map(int, input().split()))
a.sort()
if a[1] < 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, input().split())
print([':(','Yay!'][ a <= 8 and b <= 8])

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

Submission status: Accepted

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


def main():
    """Function."""
    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:
def abc100_a():
    a, b = map(int, input().split())
    print([":(", "Yay!"][max(a,b) <= 8])


abc100_a()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_lines = input()
if int(input_lines.split(" ")[0])<=8 and int(input_lines.split(" ")[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())
print("Yay!") if a <= 8 and b <= 8 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 = [int(i) for i in 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 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:
    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:
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:
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 (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:
ab = list(map(int, input().split()))
a = ab[0]
b = 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 <= 8 and B <= 8):
  print('Yay!')
  
else:
  print(':(')

Submission status: Accepted

Solution code:
s=input();print(':('*(len(s)>3or'9'in s)or'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:
A, B = map(int, input().split())
if 1 <= A <= 8 and 1 <= B <= 8:
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

print("Yay!")

Submission status: Accepted

Solution code:
a,b = input().split()
#print(a)
#print(b)

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# Happy Birthday!
if all([True if i <= 8 else False for i in list(map(int, input().split()))]):
    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:
a, b = [int(_) for _ in 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 <= 8 and b <= 8 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 = input().split()

if int(a) <= 8 and int(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 = [int(x) for x 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 = map(int,input().split())

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

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 = [int(i) for i in input().split()]
if max(A,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 = list(map(int, input().split()))
if a > 8 or b > 8:
	print(":(\n")
else:
	print("Yay!")

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
from sys import stdin

A, B = [int(i) for i in stdin.readline().rstrip().split()]

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

Submission status: Accepted

Solution code:
"""
A - Happy Birthday!
"""

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

if a < b:
    temp = a
    a = b
    b = temp

piza = 16
for i in range(16):
    if (i % 2) == 0 and a != 0:
        piza -= 1
        a -= 1
    elif b != 0:
        piza -= 1
        b -= 1
    elif a == 0 and b == 0:
        break

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
A - Happy Birthday!
https://abc100.contest.atcoder.jp/tasks/abc100_a

"""
import sys
from sys import stdin
input = stdin.readline


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


if __name__ == '__main__':
    main(sys.argv[1:])

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 (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:
list1 = list(map(int, input().split()))
a = list1[0]
b = list1[1]

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

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

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:
c=list(map(int, input().split( )))
if max(c)>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:
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,datetime
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(input())
def inpl(): return list(map(int, input().split()))
def inpl_s(): return list(input().split())
atoz = [chr(i) for i in range(97,97+26)]

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

Submission status: Accepted

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# coding:utf-8


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


a,b = inpl()

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

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

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:
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 = map(int, input().split())
ans = ["Yay!", ":("][max(A, B) > 8]

print(ans)

Submission status: Accepted

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

print(
    ["Yay!", ":("][max(A, B) > 8]
    )

Submission status: Accepted

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

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

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

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 8>= A and 8>= B:
    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(i) for i in input().split())

C=max(A,B)
if C <= 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=input().split()
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 >= 9 or B >= 9):
    print(':(')
else:
    print('Yay!')

Submission status: Accepted

Solution code:
# coding: utf-8

def solve(A, B):
    if A > 8: return ":("
    if B > 8: return ":("
    return "Yay!"

if __name__ == "__main__":

    A, B = map(int, input().split())
    print(solve(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:
a, b  = list(map(int ,input().rsplit()))

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

Submission status: Accepted

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

if max(x) <= 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())
print(':(' if max(a,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, raw_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(":(")
elif a<=8 and b<=8:
    print("Yay!")

Submission status: Accepted

Solution code:
#!/usr/bin/python3

from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


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

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

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

print(answer)

Submission status: Accepted

Solution code:
#標準入力
N, M = map(int, input().split())

#実働
if N > 8:
  print(":(")
elif M > 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 a<=8 and b<=8:
  print ("Yay!")
else:
  print(":(")

Submission status: Accepted

Solution code:
a, b = [int(n) for n in 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:
import sys 
import math

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

can_eat = True
if a > 8:
 can_eat = False
elif b > 8:
 can_eat = False

rslt = 'Yay!'
if not (can_eat): 
 rslt = ':('

print(rslt)

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:
amount = input()

lis = amount.split()

judge = 0

for num in lis:
    if int(num) <= 8:
        judge += 1

    else:
        pass

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

Submission status: Accepted

Solution code:
#食べたい数のケーキを取ることができるならば Yay!, そうでなければ :( と出力しなさい.
a, b = map(int, input().split(" "))
if (a < 9) & (b < 9):
    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 = (int(x) for x in raw_input().split())
print "Yay!" if a <= 8 and b <= 8 else ":("

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def getinputdata():

    array_result = []    
    array_result.append(input().split(" "))

    flg = True

    try:
        while flg:

            data = input()

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = True

            else:

                flg = False
    finally:

        return array_result

arr_data = getinputdata()

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

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

Submission status: Accepted

Solution code:
#-*-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:
import sys
import math
import collections
import itertools
import array
import inspect

# Set max recursion limit
sys.setrecursionlimit(10000)

# Debug output
def chkprint(*args):
    names = {id(v):k for k,v in inspect.currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg),'???')+' = '+repr(arg) for arg in args))

# Binary converter
def to_bin(x):
    return bin(x)[2:]

# --------------------------------------------

dp = None

def main():
    a, b = [int(_) for _ in input().split()]

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

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 = 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())
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:
# your code goes here
x,y = map(int,input().split())
if x <= 8 and y <= 8:
	print('Yay!')
else:
	print(':(')

Submission status: Accepted

Solution code:
a, b = list(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) & (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(':(')