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

Solution code:
e=int(input())
s=int(input())
if(s>8 or e>8):
	print(":(")
else:
	print("Yay!")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
e=int(input())
s=int(input())
if(s>=8 or e>=8):
	print(":(")
else:
	print("Yay!")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input ())
B = int (input ())
if A > 8 or B > 8: 
    res = ‘: (‘
 
else:
    res = ‘Yay!’
 
print(res)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if ((A > 9) or (B > 9)):
    print(':(')
else:
    print('Yay!')

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
if a<=8:
    if b<=8:
        print('Yay!')
    else:
        print(': (')
else:
    print(': (')

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if A < 9 and B < 9:
  print('Yay!')
else:
  print(':(')

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
 
if A <= 8:
    if B <= 8:
        print('Yay!')
    else:
        print( ':(') 
else:
    print( ':(')

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if ((A < 9) and (B < 9)):
    print('Yay!')
else:
    print(':(')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
numA numB = input()
if(numA <=8 and numB <= 8):
    print('Yay!')
else:
    print(':(')

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())
if A+B<=8:
    print('Yay!')
elif abs(A-B)<=(16-min([A,B])*2)/2:
    print('Yay!')
else:
    print(':(')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if (A < 9) and (B < 9):
    print('Yay!')
else:
    print(':(')

Submission status: Runtime Error

Solution code:
import math
import itertools

line = input().split()
n = int(line[0])
m = int(line[1])

values = []
for i in range(n):
    values.append(list(map(int, input().split())))

mx = 0
for c in list(itertools.combinations(range(n), m)):
    x = 0; y = 0; z = 0
    for i in range(len(c)):
        x += values[c[i]][0]
        y += values[c[i]][1]
        z += values[c[i]][2]
    
    s = abs(x) + abs(y) + abs(z)
    if s > mx:
        mx = s
print(mx)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if A <9 and B < 9:
    print('Yay!')
else:
    print(':(')

Submission status: Runtime Error

Solution code:
#input one int
#a = int(input())

#input some val
#a, b, c = (int(i) for i in input().split())
#val = [[int(i) for i in input().split()] for i in range(N)]

#input matrix
#a = [input().split() for i in range()]

#a, b = (int(i) for i in input().split())
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
cake_a = int(input())
cake_b = int(input())

if cake_a > 8 or cake_b > 8:
    print(":(")
    exit(0)
    
print("Yay!")

Submission status: Runtime Error

Solution code:
a = int(raw_input())
b = int(raw_input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
 
s = 16
for i in range(16):
	if i%2 == 0:
		if a > 0:
			s -= 1
			a -= 1
	else:
		if b > 0:
			s -= 1
			b -= 1
	if s < 0:
		break
 
if a > 0 or b > 0:
	print(':(')
else:
	print('Yay!')

Submission status: Runtime Error

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

if a < b:
    tmp = a
    a = b
    b = tmp

r = 16 - 2a
b = b - a

if r // 2 >= b:
    print('Yay!')
else:
    print(':')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = int(input())
if a<=8 and b<=8 and a+b<=16:
    print("Yay!")
else:
    print(":(")

Submission status: Runtime Error

Solution code:
if __name__ == "__main__":
    _ = input()
    nums = map(int, input().split(" "))
    count = 0
    for n in nums:
        while n%2 == 0:
            n /= 2
            count += 1

    print(count)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

if a > 8 or b > 8:
		print(':(')
else:
		print('Yey!')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import numpy as np

a = input()
b = input()

a = int(a)
b = int(b)
if a > 8:
    print(':(')

elif b > 8:
    print(':(')

elif a+b > 16:
    print(":(")

else:
    print("Yay!")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
p = 0
if A>8:
	p = 1
if B>8:
	p = 1
if p==0:
	print("Yay!")
else:
	print(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
a = np.array(input().split()).astype(int)

sum = 0
for i in range(len(a)):
    sum += a[i]%2
print(sum)

Submission status: Runtime Error

Solution code:
a = int(raw_input())
b = int(raw_input())

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())
if A+B<=8:
    print('Yay!')
elif abs(A-B)<=(16-min([A,B]*2))/2:
    print('Yay!')
else:
    print(':(')

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if A <9 and B < 9:
    print('Yay!')
else:
    print(':(')

Submission status: Runtime Error

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

a = int(input())

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
# a, b = (int(i) for i in input().split())
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:

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

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = int(input())

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
A = int(input())
B = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())
if A>8 or B>8 :
   print(":(")
else:
   print("Yay!")

Submission status: Runtime Error

Solution code:
import sys


def check(A, B):
    if A > 8 or B > 8:
        return False
    return True


ret = check(
    int(sys.stdin.readline()),
    int(sys.stdin.readline()))
if ret:
    print('Yay!')
else:
    print(':(')

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
ui = input()

A, B = int(ui.split()[0]), int(ui.split()[1])

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

a = return_and(A,B)
print(a)

Submission status: Runtime Error

Solution code:
ui = input()

A, B = int(ui.split()[0]), int(ui.split()[1])

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

a = return_and(A,B)

Submission status: Runtime Error

Solution code:
#coding:utf-8
a = int(input())
b = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
if int(input())>=8 and int(input())>=8: print('Yay!')
else: print(':(')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input ())
B = int (input ())
if A > 8 or B > 8: 
    res = ‘: (‘

else:
    res = ‘Yay!’

print(res)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

if max(a, b) > 8:
    print(':(')
else:
    print('Yay!')

Submission status: Runtime Error

Solution code:
#input one int
#a = int(input())

#input some val
#a, b, c = (int(i) for i in input().split())
#val = [[int(i) for i in input().split()] for i in range(N)]

#input matrix
#a = [input().split() for i in range()]

a = int(input())
b = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
#encoding:utf-8

a=int(input())
b=int(input())

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

else:
    print(":(")

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

s = 16
for i in range(16):
	if i%2 == 0:
		if a > 0:
			s -= 1
			a -= 1
	else:
		if b > 0:
			s -= 1
			b -= 1
	if s < 0:
		break

if a > 0 or b > 0:
	print(':(')
else:
	print('Yay!')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b= map(int, [input() for i in range(2)])

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

Submission status: Runtime Error

Solution code:
A = input()
B = input()

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

Submission status: Runtime Error

Solution code:

a = input()
b = input()

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
A = input()
B = input()
A = int(A)
B = int(B)

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

Submission status: Runtime Error

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

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

else:
    print(":\)")

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if A <= 8 and B <= 8:
  print("Yay!")
elif 8 < A or B < 8:
  print(":(")

Submission status: Runtime Error

Solution code:
# coding: utf-8
def main():
    A = int(input())
    B = int(input())
    if A > 8 or B > 8:
        print(":(")
    else:
        print("Yay!")

if __name__ == "__main__":
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
#入力
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
import bisect
import heapq
import math
import random
import sys
from collections import Counter, defaultdict
from decimal import ROUND_CEILING, ROUND_HALF_UP, Decimal
from functools import lru_cache, reduce
from itertools import combinations, combinations_with_replacement, product, permutations

sys.setrecursionlimit(10000)


def read_int():
    return int(input())


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


def read_float():
    return float(input())


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


def read_str():
    return input()


def read_str_n():
    return list(map(str, input().split()))


def error_print(*args):
    print(*args, file=sys.stderr)


def mt(f):
    import time

    def wrap(*args, **kwargs):
        s = time.time()
        ret = f(*args, **kwargs)
        e = time.time()

        error_print(e - s, 'sec')
        return ret

    return wrap


@mt
def slv(A, B):
    if A <= 6 and B <= 6:
        return 'Yay!'
    else:
        return ':('


def main():
    A = read_int()
    B = read_int()
    print(slv(A, B))


if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
A = input()
B = input()

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

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
print("yay" if a<=8 and b<=8 else ":(")

Submission status: Runtime Error

Solution code:
from sys import stdin, stdout
from math import sqrt
from collections import defaultdict
#t = int(stdin.readline().strip())
#R, L, C, Vin = [float(x) for x in stdin.readline().strip().split()]
A = int(stdin.readline().strip())
B = int(stdin.readline().strip())
print("Yay!" if (A <= 8 and B <= 8) else ":(")

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())
ans=str()
if max(A,B)<9:
    ans="Yay!"
else:
    ans=":("
print(ans)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
print('Yay!' if int(input())>=8 and int(input())>=8 else ':(')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

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

if A+B <= 16 and A < 9 and B < 9:
    print("Yay!")
else :
    print(":(")

Submission status: Runtime Error

Solution code:
if __name__ == "__main__":
    a = int(input())
    b = int(input())

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
p = 0
if A>8:
	p = 1
if B>8:
	p = 1
if p==0:
	print("Yay!")
if p==1:
	print(":(")

Submission status: Runtime Error

Solution code:
11 4

Submission status: Runtime Error

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

a=int(input())
b=int(input())

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

Submission status: Runtime Error

Solution code:
a = (int)(input())
b = (int)(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())
count = 0
for i in range(16):
  if count == 0:
    A -= 1
  else:
    B -= 1
if A <= 0 and B <= 0:
	print(Yay!)
else:
  print(:()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())

b = int(input())

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

else:
    print(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
from sys import stderr
from functools import reduce
from operator import add
def f(): return [int(i) for i in input().split()]
def debug(*x): stderr.write(reduce(add,repr(x)).strip("()\',")+'\n')

a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
import sys

stdin = sys.stdin

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

a = ni()
b = ni()

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
import sys, math
from sys import stdin, stdout

rem = 10 ** 9 + 7
sys.setrecursionlimit(10 ** 6)
take = lambda: map(int, stdin.readline().split())


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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<cctype>
#include<math.h>
#include<string>
#include<string.h>
#include<stack>
#include<queue>
#include<vector>
#include<utility>
#include<set>
#include<map>
#include<stdlib.h>
#include<iomanip>

using namespace std;

#define ll long long
#define ld long double
#define EPS 0.0000000001
#define INF 1e9
#define MOD 1000000007
#define rep(i,n) for(i=0;i<(n);i++)
#define loop(i,a,n) for(i=a;i<(n);i++)
#define all(in) in.begin(),in.end()
#define shosu(x) fixed<<setprecision(x)

typedef vector<int> vi;
typedef vector<string> vs;
typedef pair<int,int> pii;

int main(void) {
    int i,j;
    int a,b;
    string s;
    cin >> a >> b;
    if(a <= 8 && b <= 8){
        cout << "Yay!" << endl;
    }else{
        cout << ":(" << endl;
    }


}

Submission status: Runtime Error

Solution code:
import sys

stdin = sys.stdin

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

a = ni()
b = ni()

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())
print(['Yay!',':('][A>8 or B>8])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
if a == b:
    print("Yay!")
else:
    print(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
if max(a,b) <= 6:
  print('Yay!')
else:
  print(':(')

Submission status: Runtime Error

Solution code:

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
'''input
3 14 3 25
3 1 1
'''
a = input()
b = input()
if a > 8 or b > 8 :
	print ":("
else:
	print "Yay!"

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())


if a <= (a+b)//2 and b <= (a+b)//2:
    print("Yay!")
else:
    print(":(")

Submission status: Runtime Error

Solution code:
a,b=int(input())
if a>6 or b>6:
    print(':(')
else:
    print('Yay!')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <set>
#include <map>
#include <vector>
#include <math.h>
#include <queue>
#include <stack>
#include <list>
#include <functional>
#include <numeric>
#include <iostream>

using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (n); ++i)

int A, B;

int main() {

	scanf("%d%d", &A, &B);

	if (A <= 8 && B <= 8) printf("Yay!\n");
	else printf(":(\n");

	return 0;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if a < 9 and b < 9:
  print('Yay!')
else:
  print(':(')

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
if a<9 and b<9: print("Yey!")
else: print(":(")

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
if a + b <= 14:
    print('Yay!')
else:
    print(':(')