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 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(':Y(a y !'[(A<=8)*(B<=8)::2])

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

Submission status: Accepted

Solution code:


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


    # Solve
if __name__ == "__main__":
    solve()

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

Submission status: Accepted

Solution code:
a,b = list(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 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())
print(":(" if A > 8 or B > 8 else "Yay!")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if min(a,b)*2+(max(a,b)-min(a,b))*2<=16:
    print('Yay!')
else:
    print(':(')

Submission status: Accepted

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

import sys

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def LI():
	return [ int(s) for s in input().split() ]
  
a,b = LI()
 
print('Yay!') if a <= 8 and b <= 8 else print(':(')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import os

OK = 'APPROVED'
NG = 'DENIED'


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    A, B = list(map(int, sys.stdin.buffer.readline().split()))

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
print("Yay!") if a<9 and b<9 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+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:
a, b=map(int,input().split())
print("Yay!" if 16/a >=2 and 16/b >=2 else ":(")

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

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

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

Submission status: Accepted

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

A = int(A)
B = int(B)

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

Submission status: Accepted

Solution code:
S = input().split(' ')
A, B = map(int, S)
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!') if a <= 8 and b <= 8 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 0<= a <= 8 and 0<= 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,input().split())
c = abs(a-b)
d = 16 - a - b

if c * 2 > d:
  print(":(")
  
else:
  print("Yay!")

Submission status: Accepted

Solution code:
# A - Happy Birthday!
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(':(')
else:
  print('Yay!')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
import sys
def input(): return sys.stdin.readline().rstrip()
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())

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

Submission status: Accepted

Solution code:
A,B = [int(s) for s in 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 = [int(v) for v in input().strip().split(" ")]

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

Submission status: Accepted

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

Submission status: Accepted

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


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


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)


if __name__ == '__main__':
    main()

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 = [int(i) for i in 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 or b>8) and abs(a-b)>1:
    print(":(")
else:
    print("Yay!")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
input = sys.stdin.readline().rstrip

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

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

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

if all(i <= 8 for i in ab):
	print('Yay!')
else:
	print(':(')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B=map(int, input().split())
if A > 8 or B > 8 or A+B > 16:
  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:
    if b <= 8:
        print("Yay!")
    else:
        print(":(")
elif b <= 8:
    if a <= 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:
# -*- coding: utf-8 -*-


#----------
a,b = [int(i) for i in input().rstrip().split()]
#----------

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = [int(_) for _ in 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:
S = input()
A,B = S.split()

A = int(A)
B = int(B)

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

Submission status: Accepted

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

import math
from collections import defaultdict

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

ans = 'Yay!'

if a > 8 or b > 8:
    ans = ':('

print(ans)

Submission status: Accepted

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

res_c = 16 - min(a, b)*2
res_ab = max(a, b) - min(a, b)
if 2*res_ab > res_c:
    print(':(')
elif 2*res_ab <= res_c:
    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 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:
def main():
    a,b = map(int, input().split())
    if a>8 or b>8:
        print(':(')
    else:
        print('Yay!')


if __name__ =='__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
class Solution:
    def solve(self, A: int, B: int) -> str:

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


if __name__ == '__main__':

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

    # solve
    solution = Solution()
    print(solution.solve(A, B))

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

e = 0
squ = 0
for i in range(0, 16, 2):
    #for j in range(b)
    #s[i] = 1
    #s[i+1] = 0
    e += 1
    squ += 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,y=input().split()

if int(x)<=8 and int(y)<=8:
  print('Yay!')
else:
  print(':(')

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
M=max(A,B)
if M>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 >= 0 and a <= 8 and b >= 0 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(":(")


if __name__ == '__main__':
    main()

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- 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:
a,b = map(int,input().split())
if a<9 and b<9:
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

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

Submission status: Accepted

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

if (a > 8) or (b > 8):
    print(':(')
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 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 >= 9 or B >= 9:
    print(":(")
    exit()

print("Yay!")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print([':(','Yay!'][(a<9)*(b<9)])

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!")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
 
stdin = sys.stdin

mod = 1000000007
inf = 1 << 60
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()
nas = lambda: stdin.readline().split()

a, b = na()

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

Submission status: Accepted

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

if a > 16/2 or b > 16/2:
  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
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
a,b = map(int,input().split())
print("Yay!" if a <= 8 and b <= 8 else ":(")

Submission status: Accepted

Solution code:
import os
import sys

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(10 ** 9)
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7
# MOD = 998244353


A, B = list(map(int, sys.stdin.buffer.readline().split()))

ok = A <= 8 and B <= 8
if ok:
    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:
"""
author : halo2halo
date : 24, Jan, 2020
"""

import sys

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

Submission status: Accepted

Solution code:
# import numpy as np
# import scipy as sp
# print(a,b,c,sep="") # 半角スペースなしで出力(abc)
# n=int(input())  #数値入力 「N」だけの入力のとき
# a,b=map(int, input().split())  #複数数値入力　「A B」みたいなスペース空いた入力のとき
# c=list(map(int, input().split()))  #リスト入力 「a1 a2 a3 ...」みたいな配列のような入力のとき
# s=[list(map(int,list(input()))) for i in range(h)]  # 二次元配列入力　二次元マップみたいな入力のとき
# import sys ; sys.exit() # プログラム終了
# from copy import deepcopy ; b=deepcopy(a)
# chr(ord('a') + 1)
# s.sort(key=lambda x: x[1], reverse=False) # 2番目の要素で昇順にソート（Trueなら降順）
#
a = max(map(int, input().split()))
if a <= 8:
    ans = 'Yay!'
else:
    ans = ':('

print(ans)

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

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

if a >= 9:
  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:
def main():
    from sys import stdin, setrecursionlimit
    setrecursionlimit(10**6)
    r = stdin.readline()[:-1]
    #n = int(stdin.readline()[:-1])   
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]

    res = 0
    a, b = map(int, r.split())
    if max(a,b) > 8:
        print(':(')
    else:
        print('Yay!')

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

if a > 8 or b > 8:
  print(':(')
elif a <= 8 and b <= 8:
  print('Yay!')

Submission status: Accepted

Solution code:
a, b = 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:
  r = 'Yay!'
else:
  r = ':('

print(r)

Submission status: Accepted

Solution code:
num = input().split()
num_i = [int(s) for s in num]

if(num_i[0] > 8 or num_i[1] > 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 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 = (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 or B>8:
    print(":(")
else:
    print("Yay!")

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 < 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 sys
input = sys.stdin.readline
A,B = [int(i) for i in input().split()]
ans = "Yay!"
if A > 8 or B > 8 :
    ans = ":("
print(ans)

Submission status: Accepted

Solution code:
A,B=map(int, input().split())  #複数数値入力　「A 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 or b>8:
  print(":(")
  exit()
else:
  print("Yay!")
  exit()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(lambda x: int(x), 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())
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(":(")