TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: 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?

Submission attempts (in order):
a, b = map(int, input().split())
if a <= 8 and b <= 8:
    print('Yey!')
else:
    print(':(')

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


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):

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

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


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


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


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A,B = map(int, input().split())
if A <= 8 and B <= 8:
    print('Yay')
else:
    print(':(')

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

if __name__ == '__main__':
    a = [int(i) for i in input().split()]

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

import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

if __name__ == '__main__':
    a = [str(i) for i in input().split()]

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

import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

if __name__ == '__main__':
    a = [int(i) for i in input().split()]

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



Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
d,n = map(int,input().split())
 
if d == 0:
  print(n)
elif d == 1:
  print(100*n)
elif d == 2:
  print(10000*n)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a,b=map(int,input().split())
print('Yay!' if a*b%8==0 else ':(')

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A, B = map(int, input().split())
print('Yay!' if A > 8 or B > 8 else ':(')

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a,b=list(map(int, input().split()))
if a<=8 and b<=8:
    print(‘Yay!’)
else:
    print(‘:(’)


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


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b = map(int, intput().split())
if a>=9 or b>=9:
  print(':(')
else:
  print('Yay!')

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

a,b = int(intput().split())
if a>=9 or b>=9:
  print(':(')
else:
  print('Yay!')

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b = map(int,input().split())
if a<=8 and b<=8:
  print("Yay")
else:
  print(":(")

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a, b= map(int, [input() for i in range(2)])

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

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

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a, b = map(int, input().split())


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


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


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


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


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


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A, B = map(int, input().split())
max = 8
if A <= max && B <= max:
  print("Yay!")
else:
  print(":(")
  
  

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
import sys
if __name__ == "__main__":
    D, N = list(map(int, (input().split(' '))))
    print(pow(100, D) * N)

import sys
if __name__ == "__main__":
    D, N = list(map(int, (input().split(' '))))
    print(pow(100, D) * N)

import sys
if __name__ == "__main__":
    A, B = list(map(int, (input().split(' '))))
    if A >= 9 or B >= 9:
        print(":(")
        sys.exit()
    print("Yay!")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A = input()
B = input()

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

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

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b = (int (x) for x in input ().split ())
if a<=8 and b<=8:
  print ('Yey!')
else:
  print (':(')

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
D, N = map(int, input().split())
if N != 100:
    print(N * 100 ** D)
else:
    print((N + 1) * 100 ** D)




using namespace std;


int main() {
  int A, B;
  cin >> A >> B;
  if (A > 8 || B > 8)
    cout << ":(" << endl;
  else
    cout << "Yay!" << endl;
}

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

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b = map(int,input().split())

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


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

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


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
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 ':(')


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


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a, b = map(int, input().split())
if a > 8 and b > 8:
    print(":(")
else:
    print("YAY")

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
n = int(input())
p = int(input())
if n <= 8 and p<= 8:
    print('Yay!')
else:
    print(':(')

n = int(input())
p = int(input())
if n <= 8 and p<= 8:
  print('Yay!')
else:
  print(':(')

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
print([":(", "Yay!"][sum(list(map(int, input().split()))) <= 8])

print([":(", "Yay!"][max(list(map(int, input().split()))) <= 8])

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a, b = map(int, input().split())
if a <= 8 and b <= 8:
    print("Yay")
else:
    print(":(")

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
A, B = map(int, input().split())
if 8 < A or 8 < B:
    print('Yay!')
else:
    print(':(')

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
D, N = map(int, input().split())

if D == 0:
  if N == 100:
    print(N+1)
  else:
    print(N)
elif D == 1:
  if N == 100:
    print(100 * N+1)
  else:
    print(100 * N)
else:
  if N == 100:
    print(10000 * N+1)
  else:
    print(10000 * N)

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a,b=map(int,input().split())
if a>8 or b>8:
  print("Yay!")
else:
  print(":(")

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

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b = map(int, input().split())
print('Yay!') if(a>8 or b>8) else print(':(')

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


Verdicts: Wrong Answer

Accepted
Problem: 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?

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

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
if int(input())>=8 and int(input())>=8: print('Yay!')
else: print(':(')

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

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

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
#-*- coding: utf-8 -*-

D, N = map(int, input().split())


if N != 100:
    print(100 ** D * (N+1))
else:
    print(100 ** D * (N +1))

#-*- coding: utf-8 -*-

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


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



Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
# -*- 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()


# -*- 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 <= 8 and B <= 8:
        return 'Yay!'
    else:
        return ':('


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


if __name__ == '__main__':
    main()


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
import copy
import numpy as np
n,m = map(int, input().split())
cakes = []
for i in range(n):
    cakes.append(list(map(int, input().split())))

def rec(i, k, s, obj):
    if i==k:
        obj.append(s)
        return
    rec(i+1, k, copy.deepcopy(s), obj)
    s[i]=1
    rec(i+1, k, copy.deepcopy(s), obj)
    s[i]=-1


def makeCombination(k):
    s=[-1 for i in range(k)]
    obj = []
    rec(0, k, s, obj)
    return obj

comb = makeCombination(3)
max = 0
for c in comb:
    sum_list = []
    nc = np.array(c)
    for cak in cakes:
        cake = np.array(cak)
        total = cake.dot(nc)
        sum_list.append(total)
    ssum_list = sorted(sum_list)
    sum_mm = sum(ssum_list[n-m:])
    if(max < sum_mm):
        max = sum_mm

print(max)


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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):

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

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


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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
D, N = map(int, input().split())
l = []
for i in range(1, 100):
	if 100/i == D:
		l.append(i)
print(l[N-1])

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

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A,B=map(int,input().split())
if A>8 or b>8:
    print(":\(")
else:
    print("Yay!")

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A ,B = map(int, input())

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

else:
    print(":\)")

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

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

else:
    print(":(")

Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a, b = map(int, input().split())
print([':(', 'Yay!'][int((a <= 16) & (b <= 8)])


a, b = map(int, input().split())
print([':(', 'Yay!'][int((a <= 8) & (b <= 8))])


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A,B = map(int,input().split())
if A <= 8 and B <= 8:
    print("Yes")
else:
    print("No")

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
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)
    



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

else:
    print(":(")

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
# coding: utf-8
import re
import bisect
from datetime import datetime as dt
import bisect
import math
input = sys.stdin.readline

def gcd(a, b):
    return math.gcd(a, b)

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

class slist(list):
    def __init__(self, *args, **kw):
        list.__init__(self, *args, **kw)
        self.sort()

    def append(self, value):
        bisect.insort(self,value)

    def index_left(self, value):
        return bisect.bisect_left(self, value)


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


# coding: utf-8
import re
import bisect
from datetime import datetime as dt
import bisect
import math
import sys
input = sys.stdin.readline

def gcd(a, b):
    return math.gcd(a, b)

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

class slist(list):
    def __init__(self, *args, **kw):
        list.__init__(self, *args, **kw)
        self.sort()

    def append(self, value):
        bisect.insort(self,value)

    def index_left(self, value):
        return bisect.bisect_left(self, value)


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


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a, b = map(int, input().split())
op = [a + b, a - b, a * b]
print(max(op))


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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
d,n = map(int,input().split())
if n == 100 :
    print((100**d)*101)
else :
    print((100 ** d) * n)

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
d, n = (int(i) for i in input().split())

if n != 100:
    print(pow(100, d) * n)
else:
    print(pow(100,d) * n + 1)

N = int(input())
a_li = list(map(int,input().split()))
     
cnt = 0
for i in a_li:
    while i % 2 == 0:
        cnt += 1
        i //= 2
        if i % 2 != 0:
            break
     
print(cnt)

a, b = (int(i) for i in input().split())
if a > 8 or b > 8:
  print(':(')
else:
  print('Yay!')

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a, b = map(int, input())
if 8 < a or 8 < b:
  print(":(")
else:
  print("Yay!")


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


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
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!')

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b = map(int,input().split())
if a > 9 or b > 9:
  print(":(")
else:
  print(""Yay!")

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


Verdicts: Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
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(":(")

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b=map(int,input().split())
print("Yay" if a<=8 and b<=8 else ":(")

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


Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a,b = int(input().split())

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

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

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
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(':')

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

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

if a > b:
    tmp = a
    a = b
    b = tmp

r = 16 - 2 * a
b = b - a

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


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
A, B = tuple(int(num) for num in input().split())

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

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a,b=map(int,input().split())
if a or b > 8:
  print(":(")
else:
  print("Yay!")

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

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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?

Submission attempts (in order):
a,b=map(int,input().split())
if a <= 8 and b <= 8:
  print("yay")
else:
  print(":(")

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a, b = map(int, input().split())
if a >= 8 and b >= 8:
  print("Yay!")
else:
  print(":(")

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
x,y = map(int,input().split())
if x <= 8 and y<= 8:
  print('Yay')
else:
  print(':(')

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
a,b = (int(_) for _ in input().split())
if(a > 8 or b > 8):
    print("Yay!")
else:
    print(":(")
    

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

Verdicts: Wrong Answer

Accepted
Problem: 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?

Submission attempts (in order):
d,n = [int(i) for i in input().split()]
if n == 100:
    ans = 100**d*(n+1)
else:
    ans =  100**d*n
print(ans)

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

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

Verdicts: Wrong Answer

Accepted