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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = list(map(int,input()
.split()))
if num[0]>num[1]:
    bignum = num[0]
else :
    bignum = num[1]

if  bignum <= 8:
    print('Yay!')
else :
    print(':(')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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<9 and B<9 else ":(")

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import numpy as np

readInt = lambda: int(sys.stdin.readline())
readIntN = lambda: [int(v) for v in sys.stdin.readline().split(' ')]

a, b = readIntN()
ret = 'Yay!' if max(a, b) <= 8 else ':('
print(ret)

Submission status: Accepted

Solution code:
import functools

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


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


def inlf():
    return list(map(float, input().split()))


def inls():
    return input().split()


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper


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

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
if max(A, 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())
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:
# ABC100A - Happy Birthday!
a, b = list(map(int, input().rstrip().split()))
if a > 8 or b > 8:
    print(":(")
else:
    print("Yay!")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = (int(i) for i in input().split())
if(max(A,B)>8):
    print(":(")
else:
    print("Yay!")

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 (1 <= A <=8) and (1 <= 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=list(map(int,input().split()))
print("Yay!" if max(A)<=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:
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:
# -*- 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 < 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(':(') if a > 8 or b > 8 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 and b < 9: print("Yay!")
else: print(":(")

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = list(map(int, input().split()))
A = i[0]
B = i[1]

if(A - B > 1 or B - A > 1):
  print(':(')

if((A - B) == 0 or (A - B) == 1 or (B - A) == 0 or (B - A) == 1):
  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:
# /usr/bin/python
# -*- coding: utf-8 -*-
#
import math


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python

def main():
    A, B = [int(x) for x in 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())
if abs(A - B) <= 1:
    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:
print(["Yay!", ":("][not(max(map(int, input().split()))<=8)])

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
INF = float("inf")


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


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

Submission status: Accepted

Solution code:
#coding:utf-8
import sys

input_nums = [int(x) for x in sys.stdin.readline().split()]

if len(input_nums) > 2 :
	sys.exit("illegal input")
    
if (sum(input_nums)) > 16:
  sys.exit("illegal input")
  
if (min(input_nums)) < 1:
  sys.exit("illegal input")

max_num = max(input_nums)
if max_num > 16:
  sys.exit("illegal input")
elif max_num > 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<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:

import sys
stdin = sys.stdin
 
sys.setrecursionlimit(10**5) 
 
def li(): return map(int, stdin.readline().split())
A, B = tuple(li())
if A > 8 or B > 8:
    print(":(")
else:
    print("Yay!")

Submission status: Accepted

Solution code:
cake_a,cake_b = (int(x) for x in input().split())

if cake_a <= 8 and cake_b <= 8:
    print('Yay!')
else:
    print(':(')

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline

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

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

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

A, B = MAP()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, raw_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 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 = 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('Y:a(y !'[a//9|b//9::2])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
M=max([int(x) for x in input().split()])
print("Yay!" if M<=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:
# -*- 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:
a,b=map(int,input().split())
if a>8 or  b>8:
    print(":(")
else:
    print("Yay!")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b = [int(elem) for elem 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) & (b <= 8):
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

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

if abs(a-b) < 2:
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

Solution code:
a,b=(int(x) for x in input().split())
if a>=9:
  print(':(')
elif b>=9:
  #ここ↑のイコールを忘れてた
  print(':(')
else:
  print('Yay!')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = [int(x) for x in input().split()]
print("Yay!" if A < 9 and B < 9 else ":(")

Submission status: Accepted

Solution code:
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

if list1_0 > 8 or list1_1 > 8:
    print(":(")
else:
    print("Yay!")

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    print(solve(input()))

Submission status: Accepted

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

if abs(A - B) <= (16 - (A + B))/2:
    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());print('Yay!' if a <= 8 and b <= 8 else ':(')

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:
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:
def happy_birthday(A: int, B: int) -> bool:
    return A <= 8 and B <= 8


if __name__ == "__main__":
    A, B = map(int, input().split())
    yes = happy_birthday(A, B)
    print('Yay!' if yes else ':(')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input().split()
if int(a[0]) <= 8:
  if int(a[1]) <=8:
    print('Yay!')
  else:
    print(':(')
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:
#!/usr/bin/env python3
import sys


def solve(A: int, B: int):
    if A>8 or B>8:
        print(':(')
    else:
        print('Yay!')
    return


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

Submission status: Accepted

Solution code:
def solve():
    A,B=map(int,input().split())
    if A <= 8 and B <= 8:
        return True
    return False

if solve():
    print('Yay!')
else:
    print(':(')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc100/tasks/abc100_a
a, b = [int(x) for x in input().split()]
print("Yay!") if a < 9 and b < 9 else print(":(")

Submission status: Accepted

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

Submission status: Accepted

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

ans = max(A, B) <= 8

print("Yay!" if ans 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:
from sys import stdin
A,B=[int(x) for x in stdin.readline().rstrip().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 = input().split(" ")
if int(A) < 9 and int(B) < 9:
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin
a,b=[int(x) for x in stdin.readline().rstrip().split()]
if a>8 or b>8:
  print(':(')
else:
  print('Yay!')

Submission status: Accepted

Solution code:
def main():
    A, B = list(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());print("Y:a(y !"[a>8or b>8::2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

def 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:
from sys import stdin
a,b=[int(x) for x in stdin.readline().rstrip().split()]
if(a<=8 and b<=8):
    print("Yay!")
else:
    print(":(")

Submission status: Accepted

Solution code:
a = [int(i) for i in input().split()]
if a[0]<=8 and a[1]<=8:
  print('Yay!')
elif a[0] > 8 or a[0] > 8:
    print(':(')
elif a[0]+a[1] == 16 and a[0]>7 or a[1] > 7:  
  print(':(')

Submission status: Accepted

Solution code:
def readints():
    return [int(x) for x in input().split()]

A, B = readints()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main() -> None:
    A, B = map(int, input().split())
    print("Yay!" if f(A, B) else ":(")


def f(A: str, B: str) -> bool:
    if A > 8 or B > 8:
        return False
    else:
        return True


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
# -*- coding: utf-8 -*-
import sys
# ----------------------------------------------------------------
# Use Solve Function

def solve(lines):
    A,B = map(int, lines.pop(0).split(' '))
    if A <= 8 and B <= 8:
        print('Yay!')
    else:
        print(':(')


#
# main
#

# 1. use list instead of stdin

# contents = '''\
# 2 9\
# '''
# lines = contents.split('\n')

# 2. use stdin

lines = [x.strip() for x in sys.stdin.readlines()]

#
# solve !!
#
solve(lines)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if max(A,B)*2>16:
    print(':(')
else:
    print('Yay!')

Submission status: Accepted

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


main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = [int(n) for n 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())
print('Yay!' if (a<9 and b<9) else ':(')

Submission status: Accepted

Solution code:
l=list(map(int,input().split()))
#print(l)
if(all(l[x] <= 8 for x in range(len(l)) )):
  print('Yay!')
else:print(':(')

Submission status: Accepted

Solution code:
""" AtCoder """

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

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

print(x)