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

Solution code:
A, B = tuple(int(num) for num in input().split())

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
import fractions

a,b = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Wrong Answer

Solution code:
import sys
a, _ = input().split(' ')
print(':(' if int(a) > 8 else 'Yay!')

Submission status: Wrong Answer

Solution code:
import sys
a, _ = input().split(' ')
print(':(' if a > '8' else 'Yay!')

Submission status: Wrong Answer

Solution code:
import sys
a, _ = input().split(' ')
print(':(' if a == '11' else 'Yay!')

Submission status: Wrong Answer

Solution code:
import sys
print(input())

Submission status: Wrong Answer

Solution code:
d,n = map(int,input().split())
if n != 100:
    print(n*(100**d))
else:
    print(100*(100**d)+100**d)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
A, B = map(int, input().split())
if(A<=8 and B<=8):
  print('Yey!')
else:
  print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
d ,n = map(int,input().split())
if n == 100: n+=1
print(n*(100**d))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a_b = raw_input().split()

if a_b[0] > 8 or a_b[1] > 8:
    print ":("
else:
    print "Yay!"

Submission status: Wrong Answer

Solution code:
from collections import defaultdict, deque
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import sys
import random
import itertools
import math

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
x = 16 // 3
if a <= x and b <= x:
    print('Yay!')
elif a == b:
    print('Yay!')
else:
    print(':(')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
d,n=map(int,input().split())
print(100**d*n if n!=100 else 100**d*(n+1))

Submission status: Wrong Answer

Solution code:
d,n=map(int,input().split())
w=list(range(1,101))
if d==0:
    print(w[n-1])
elif d==1:
    print(n*100)
else:
    print(n*10000)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
D,N=list(map(int, input().split()))
b=10**D
a=b*N
print(a)

Submission status: Wrong Answer

Solution code:
D,N=list(map(int, input().split()))
print(10**D*N)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
D,N=map(int,input().split());print(((N>99)+N)*100**D)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
0

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

sum=A+B

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in a:
    if int(i) < 1 and int(i) > 8:
        print(":(")

print("Yay!")

Submission status: Wrong Answer

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

for i in a:
    if int(i) > 8:
        print(":(")

print("Yay!")

Submission status: Wrong Answer

Solution code:
d,n = map(int,input().split())
 
if d == 0:
  print(n)
elif d == 1:
  print(100*n)
elif d == 2:
  print(10000*n)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(['Yay!',':('][A>8 and B>8])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
print(s.count('+') - s.count('-'))

Submission status: Wrong Answer

Solution code:
#100

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

Submission status: Wrong Answer

Solution code:
#100

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
D, N = map(int, input().split())
if N != 100:
    print(N * 100 ** D)
else:
    print((N + 1) * 100 ** D)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b = list(map(int, input().rstrip().split()))
if b + 1 >= a:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if 16-(A+B)>=2 or A==B==8:
    print('Yay!')
if A>9 or B>9:
    print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print(["yay",":("][a>8 or b>8])

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
#ls = list(map(int,input().split()))
#r = int(input())
#s = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if n == 100:
    a = 101
else:
    a = n

m = 100 ** d
print(a * m)

Submission status: Wrong Answer

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

if n == 100:
    a = 99
else:
    a = n

m = 100 ** d
print(a * m)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if round(A/2)>5 or round(B/2)>5:
  print(":(")
else:
  print("Yay!")

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if round(A/2)>=5 or round(B/2)>=5:
  print(":(")
else:
  print("Yay!")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if 16-min(A,B)*2 >= abs(A-B)*2+2:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if 16-min(A,B)*2 >= abs(A-B)*2+1:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if 16-min(A,B) >= abs(A-B)*2+1:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if 16-min(A,B) > abs(A-B)*2+1:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

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


def solve(A: int, B: int):
    if A % 2 != 0 or B % 2 != 0:
        if A > 8:
            print(':(')
            return

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

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

Submission status: Wrong Answer

Solution code:
a = sorted(list(map(int, input().split())))
remain = (16 - a[1]) * 2
if (a[1] - a[0]) <= remain // 2:
    print("Yay!")
else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
D,N = map(int,input().split())
if D ==0 :
    m = 1 * N
    print(m)  

elif D == 1:
    l = 100 * N
    print(l)
    

else:
    o = 10000 * N
    print(o)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
if a == 0 and b == 100:
  print(101)
elif a == 1 and b == 100:
  print(10100)
elif a == 2 and b == 100:
  print(1010000)
else:
  print((100**a)*b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
D,N=map(int,open(0).read().split());print((N+N//100)*(100**D))

Submission status: Wrong Answer

Solution code:
ab = input().split()
ab.sort()
#a > bになる
a = int(ab[0])
b = int(ab[1])
if a == b:
  if a < 9:
    print("Yay!")
  else:
    print(":(")
elif a > 8:
  print(":(")
else:
  print("Yay!")

Submission status: Wrong Answer

Solution code:
ab = input().split()
ab.sort()
#a > bになる
a = int(ab[0])
b = int(ab[1])
if a == b:
  if a < 9:
    print("Yay!")
  else:
    print(":(")
elif a > 8:
    print(":(")
else:
  print("Yay!")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
first = input()
(sA,sB) =  first.split()
A = int(sA)
B = int(sB)
if A > 9 or B > 9:
    print(":(")
else:
    print("Yay!")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

    if not (A <= 8 and B <= 8):
        print(':(')
        return

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


if __name__ == "__main__":
    resolve()

Submission status: Wrong Answer

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

    if not (A <= 8 and B <= 8):
        print(':(')
        return

    if A % 2 == 1 and B % 2 == 0:
        print('Yay!')
    else:
        print(':(')


if __name__ == "__main__":
    resolve()

Submission status: Wrong Answer

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

if A % 2 == 0 and B % 2 == 0:
    print('Yay!')
else:
    print(':(')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

ans = N * (100 ** D)

if N == 100:
	ans += 100 ** D

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = [ int(v) for v in input().split() ]

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

Submission status: Wrong Answer

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

else:
  print("shit")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#print("please, type A and B")
ab_list = input().split()
A_cake = int(ab_list[0])
B_cake = int(ab_list[1])

if (not 1<= A_cake <=16) or (not 1<= B_cake <=16) or (A_cake + B_cake > 16):
    #print("something is wrong with your input")
    print(":(")
    #print("A:"+str(A_cake))
    #print("B:"+str(B_cake))
    exit()


Acnt = A_cake
Bcnt = B_cake

for i in range(16):
    if i % 2 == 0:
        Acnt -= 1
        continue
    else:
        Bcnt -= 1
        continue

if Acnt <= 0 and Bcnt <= 0:
    print("Yay!")
else:
    print(":(")
    print(Acnt)
    print(Bcnt)

Submission status: Wrong Answer

Solution code:
#print("please, type A and B")
ab_list = input().split()
A_cake = int(ab_list[0])
B_cake = int(ab_list[1])

if (not 1<= A_cake <=16) or (not 1<= B_cake <=16) or (A_cake + B_cake > 16):
    #print("something is wrong with your input")
    print(":(")
    #print("A:"+str(A_cake))
    #print("B:"+str(B_cake))
    exit()


Acnt = A_cake
Bcnt = B_cake

for i in range(16):
    if Acnt <= 0:
        Bcnt -= 1
        continue
    elif Bcnt <= 0:
        Acnt -= 1
        continue
    elif i % 2 == 0:
        Acnt -= 1
        continue
    else:
        Bcnt -= 1
        continue

if Acnt <= 0 and Bcnt <= 0:
    print("Yay!")
else:
    print(":(")
    print(Acnt)
    print(Bcnt)

Submission status: Wrong Answer

Solution code:
#print("please, type A and B")
ab_list = input().split()
A_cake = int(ab_list[0])
B_cake = int(ab_list[1])

if (not 1<= A_cake <=16) or (not 1<= B_cake <=16) or (A_cake + B_cake > 16):
    #print("something is wrong with your input")
    print(":)")
    #print("A:"+str(A_cake))
    #print("B:"+str(B_cake))
    exit()


Acnt = A_cake
Bcnt = B_cake

for i in range(16):
    if Acnt <= 0:
        Bcnt -= 1
        continue
    elif Bcnt <= 0:
        Acnt -= 1
        continue
    elif i % 2 == 0:
        Acnt -= 1
        continue
    else:
        Bcnt -= 1
        continue

if Acnt <= 0 and Bcnt <= 0:
    print("Yay!")
else:
    print(":)")
    print(Acnt)
    print(Bcnt)

Submission status: Wrong Answer

Solution code:
#print("please, type A and B")
ab_list = input().split()
A_cake = int(ab_list[0])
B_cake = int(ab_list[1])

if (not 1<= A_cake <=16) or (not 1<= B_cake <=16) or (A_cake + B_cake > 16):
    print("something is wrong with your input")
    print("A:"+str(A_cake))
    print("B:"+str(B_cake))
    exit()


Acnt = A_cake
Bcnt = B_cake

for i in range(16):
    if Acnt <= 0:
        Bcnt -= 1
        continue
    elif Bcnt <= 0:
        Acnt -= 1
        continue
    elif i % 2 == 0:
        Acnt -= 1
        continue
    else:
        Bcnt -= 1
        continue

if Acnt <= 0 and Bcnt <= 0:
    print("Yay!")
else:
    print(":)")
    print(Acnt)
    print(Bcnt)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

flg = 1 #食べれない

if (a <= 8) and (b <= 8):
    flg = 0
else:
        flg = 1
        
if flg == 0:
    print("Yey!")
else:
    print(":(")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if A < 9 and B < 9:
  print('Yey!')
else:
  print(':(')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
d,n = map(int, input().split())
r = 0
if n == 100:
    if d == 0:
        print(n * 1 * 101)
    elif d == 1:
        print(n * 100 * 101)
    elif d == 2:
        print(n * 100*100 * 101)
else:
    if d == 0:
        print(n * 1)
    elif d == 1:
        print(n * 100)
    elif d == 2:
        print(n * 100*100)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a + b < 1 or a + b > 16 or a > 10 or b > 10:
    print(':(')
else:
    print('Yay!')

Submission status: Wrong Answer

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

if 1 <= a + b <= 16 and (a <= 10 or b <= 10):
    print('Yay!')
else:
    print(':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from itertools import *
d, n = map(int, input().split())
delta = 100 ** d
ite = (x for x in count(delta, delta) if x % (delta * 100) != 0)
print(next(islice(ite, n - 1, None)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if (abs(a-b))%2==0 and a+b==16:
  print(":(")
else:
  print("Yay!")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if (abs(a-b))%2==0 and a+b==16:
  print("Yay!")
else:
  print(":(")

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a+b>16:
  print(":(")
elif (abs(a-b))%2==0:
  print("Yay!")
else:
  print(":(")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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 a*2 <= 16 else ':(')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Solution code:
# ABC100A - Happy Birthday!
a, b = list(map(int, input().rstrip().split()))
if a > 9 or b > 9:
    print(":()")
else:
    print("Yay!")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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