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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(200000)
input = sys.stdin.readline

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:
#100a
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 and B<9])

Submission status: Accepted

Solution code:
print(":(") if max(list(map(int,input().split())))>8 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:
# ABC100 A - Happy Birthday!
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().strip().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!')
  exit()
print(':(')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if s[0] <= 8 and s[1] <= 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:
n = list(map(int, input().split()))
print("Yay!") if all([i <= 8 for i in n]) 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,B=max(A,B),min(A,B)
num=A-B
rest=16-2*A
if rest>=2*num:
  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 max(A,B)>8:
    print(":(")
else: print("Yay!")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("Yay!" if all(int(tok) <= 8 for tok in input().split()) else ":(")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if(a+b%2==0):
    print('Yay!')
elif(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 = [int(_) for _ in input().split()]
if len(a) == 2 and 1 <= a[0] <= 16 and 1 <= a[1] <= 16 and a[0] + a[1] <= 16:
    if a[0] <= 8 and a[1] <= 8:
        print('Yay!')
    else:
        print(':(')
else:
    print('hoge!')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = input().split()
if int(num[0])<=8 and int(num[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:
import sys
from collections import deque
from collections import  Counter
import statistics
import math
stdin = sys.stdin

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

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

Submission status: Accepted

Solution code:
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())
print(":(" if a>8 or 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:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
	N,M = map(int,input().split())
	if max(N,M) > 8:
		print(":(")
	else:
		print("Yay!")

if __name__ == "__main__":
	main()

Submission status: Accepted

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

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

Submission status: Accepted

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

if(a*2 <= 16 and b*2 <= 16):
    print('Yay!')
else:
    print(':(')

Submission status: Accepted

Solution code:
import sys
import math
from fractions import gcd
# import queue
# from collections import Counter
# from itertools import accumulate
# from functools import reduce

def lcm(a, b):
    return a * b // gcd(a, b)

def combination_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))

def permutations_count(n, r):
    return math.factorial(n) // math.factorial(n - r)

big_prime = 1000000007

"""
# 標準入力取得
## 文字列
 =  sys.stdin.readline().rstrip()
 =  list(sys.stdin.readline().rstrip())

## 数値
 =  int(sys.stdin.readline())
 =  map(int, sys.stdin.readline().split())
 =  list(map(int, sys.stdin.readline().split()))
 =  [list(map(int,list(sys.stdin.readline().split()))) for i in range(N)]
"""

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

if max(a, b) > 16 // 2:
    print(':(')
else:
    print('Yay!')

Submission status: Accepted

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

Submission status: Accepted

Solution code:


def main():

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

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

if __name__== "__main__":
    main()

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print("Yay!" if 9>a and 9>b 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 = list(map(int,input().split()))
print('Yay!' if all(x <= 8 for x in a) else ':(')

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

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

#それぞれ8切れずつまでしか食べられない
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:
print(
  "Yay!"
  if all(map(
    lambda x: x <= 8,      
    map(int, input().split())
  ))
  else ":("
)

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

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
A, B = [int(x) for x in input().split()]
print('Yay!') if A<=8 and B<=8 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 A <= 8 and B <= 8:
	ans = "Yay!"
else:
	ans = ":("
    
print(ans)

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


main()

Submission status: Accepted

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


if __name__ == "__main__":
    test()

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!'][A<9 and B<9])

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:
import math

# inputList=[]
# for i in range(6):
#     inputNum = input()
#     inputList.append(inputNum)
inputa = input().split()
# inputb = input().split()

# inputa = [int(n) for n in inputa]
# inputa.sort()

# inputa = list(inputa[0])

a = int(inputa[0])
b = int(inputa[1])
# c = int(inputa[2])

# x = int(inputb[0])
# y = int(inputb[1])

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

Submission status: Accepted

Solution code:

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

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 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!'][max(a,b) <= 8])

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!")[max(a,b)<=8])

Submission status: Accepted

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

else:
  print(":(")

Submission status: Accepted

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

list.sort()

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

Submission status: Accepted

Solution code:
#100

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

Submission status: Accepted

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

    max_num = max(a,b)
    num_num = min(a,b)
    if max_num - num_num <= (16-a-b) :
        print('Yay!')
    else:
        print(':(')


if __name__ == '__main__' :
    main()

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
b, c = map(int, input().split())
if b <= 8 and c <= 8:
  print('Yay!')
else:
  print(':(')

Submission status: Accepted

Solution code:
print(":Y(a y !"[eval(input().replace(" ","<9>"))::2])

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

Submission status: Accepted

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

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 = list(map(int,input().split(' ')))
ar = list(range(1,17))
#print(A,B,ar)
if A <= 8 and B <= 8:
  print('Yay!')
else:
  print(':(')

Submission status: Accepted

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

if a + b > 16:
    print(":(")
    exit()

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

Submission status: Accepted

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

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

# solve & output
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 >= 9 or b >= 9:
    print(":(")
else:
    print("Yay!")

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 == b:
  print("Yay!")
else:
  gap = abs(a - b)
  space = 16 - a - b
  if space >= gap * 2 - 1:
    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, K = map(int, input().split())
if N <= 8 and K <= 8:
    print('Yay!')
else:
    print(':(')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
print("Yay!") if a[0]<=8 and a[1]<=8 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 = list(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 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:
#https://atcoder.jp/contests/abc100/tasks/abc100_a

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

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

Submission status: Accepted

Solution code:
"""
# 標準入力取得
## 文字列
 = sys.stdin.readline().rstrip()
 = list(sys.stdin.readline().rstrip())

## 数値
 = int(sys.stdin.readline())
 = map(int, sys.stdin.readline().split())
 = list(map(int, sys.stdin.readline().split()))
 = [list(map(int,list(sys.stdin.readline().split()))) for i in range(h)]  # 二次元配列入力　二次元マップみたいな入力のとき

# 0埋め, 小数点出力桁指定時のときの出力
a = 100
b = 0.987654321
print("{0:06d}-{1:6f}".format(a,b))
000100-0.987654

# 文字列をリストに格納
char_list = list("abcd") # ["a","b","c","d"]
"""

import math
import sys
import itertools
import queue
from fractions import gcd

def lcm(a, b):
    return a * b // gcd(a, b)

mod = 1000000007

if __name__ == "__main__":
    A,B = map(int, sys.stdin.readline().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 os, sys, re, math

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

Submission status: Accepted

Solution code:
import os, sys, re, math

lines = sys.stdin.readlines()

(a, b) = lines[0].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(":(" if a > 8 or b > 8 else "Yay!")

Submission status: Accepted

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

Submission status: Accepted

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

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

# print(A)
# print(B)

# 紙に書かれたことを守って, E869120 君と square1001 君両方が, 
# 食べたい数のケーキを取ることができるならば Yay!, そうでなければ :( と出力しなさい.

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')

#A
def A():
    a, b = LI()
    if a <= 8 and b <= 8:
        print("Yay!")
    else:
        print(":(")
    return

#B
def B():
    return

#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == '__main__':
    A()

Submission status: Accepted

Solution code:
from functools import reduce
import math

def main():
    # 文字列の2進数を数値にする
    # '101' → '5'
    # 文字列の頭に'0b'をつけてint()にわたす
    # binary = int('0b'+'101',0)

    # 2進数で立っているbitを数える
    # 101(0x5) → 2
    # cnt_bit = bin(5).count('1')
    
    # N! を求める
    # f = math.factorial(N)

    # N の逆元
    # N_inv = pow(N,MOD-2,MOD)

    # nCr
    # Nの階乗 * rの階乗の逆元 * n-rの階乗の逆元
    
    # 切り捨て
    # 4 // 3
    # 切り上げ
    #-(-4 // 3)
    
    # 初期値用:十分大きい数(100億)
    INF = float("inf")

    # 大きな素数
    MOD = 10**9+7
    
    # 1文字のみを読み込み
    # 入力:2
    # a = input().rstrip()
    # 変数:a='2'
    
    # スペース区切りで標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a, b, c, d = (int(_) for _ in input().split())  
    # 変数:a=2 b=4 c=5 d =7
    
    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a = list(int(_) for _ in input().split())
    # 変数:a = [2, 4, 5, 7]    

    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2457
    # a = list(int(_) for _ in input())
    # 変数:a = [2, 4, 5, 7]    
    A, B = (int(_) for _ in input().split())
    if A > 8 or B > 8:        
        print(':(')
    else:
        print('Yay!')
        
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A,B=tuple(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 or B>8):
    print(':(')
else:
    print('Yay!')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    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 print(":(")

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

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

if l[0] > 8 or l[1] > 8:
    print(':(')
else:
    print('Yay!')

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

Submission status: Accepted

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