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):
D, N = [int(i) for i in input().split()]
base = pow(100, D)
print(N * base if N != 100 else 101 * base)

D, N = [int(i) for i in input().split()]
base = pow(100, D)

i  = 0
while D > 0:
  i += 1
  if i % base == 0:
    continue
  D -= 1

print(i * base)

A, B = [int(i) for i in input().split()]
answer = { True: 'Yay!', False: ':(' }
print(answer[0 <= A <= 8 and 0 <= B <= 8])

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

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

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

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

if max(a,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):
amount = input()

lis = amount.split()

if int(lis[0]) and int(lis[1]) <= 8:
    print("Yay")

else:
    print(":(")

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

if a > 8 or b > 8:
    print(":(")



else:
    print("Yay!")

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

if a > 8:
    print(":(")

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

else:
    print("Yay!")

amount = input()

lis = amount.split()

judge = 0

for num in lis:
    if int(num) <= 8:
        judge += 1

    else:
        pass

if judge == len(lis):
    print("Yay!")

else:
    print(":(")

Verdicts: Wrong Answer

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):
D, N = map(int, input().split(' '))

if N == 100:
    print(pow(100, D) * 100 + pow(100, D))
    exit()
print(pow(100, D) * N)

def sum_axis(input_list):
    x_sum, y_sum, z_sum = 0, 0, 0
    for i in input_list:
        x_sum += i[0]
        y_sum += i[1]
        z_sum += i[2]

    return x_sum, y_sum, z_sum

N, M = map(int, input().split(' '))

if M == 0:
    print(0)
    exit()

xyz = []
for i in range(N):
    xyz.append(list(map(int, input().split(' '))))

signs = [[1, 1, 1], [1, 1, -1], [1, -1, 1], [1, -1, -1],
        [-1, 1, 1], [-1, 1, -1], [-1, -1, 1], [-1, -1, -1]]
results = []

for sign in signs:
    sorted_list = sorted(xyz, key = lambda x: sign[0] * x[0] + sign[1] * x[1] + sign[2] * x[2])

    tmp = sum_axis(sorted_list[-M:])
    results.append(tmp[0] * sign[0] + tmp[1] * sign[1] + tmp[2] * sign[2])

print(max(results))

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

if A > 8:
    print(":(");
    exit()
if B > 8:
    print(":(");
    exit()
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):
x,y=map(int,input().split())
if(x>8 or y>8):
    print("No")
else:
    print("Yes")


x,y=map(int,input().split())
if(x>8 or y>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, m = map(int, input().spilit())

if n > 8 or m > 8:
  print(':(')
else:
  print('Yay!')

n, m = map(int, input().split())

if n > 8 or m > 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(i) for i in input().split())
if a > 8 or b > 8:
  print('Yes')
else:
  print('No')

a, b = (int(i) for i in input().split())
if a <= 8 and b <= 8:
  print('Yes')
else:
  print('No')

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

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):
#encoding:utf-8

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

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

else:
    print(":(")


#encoding:utf-8

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

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

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

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

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

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

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

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

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

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

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

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

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


A,B = map(int,input().split())
if A <= 8 & 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

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())
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):
x=int(input())
y=int(input())
if x<9 and y<9:
  print("Yay!")
else:
  print(":(")

x,y=map(int,input().split())
if x<9 and y<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())
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):
D, N = map(int,input().split())
if N != 100:
    print(N*100**D)
else:
    print(N*100**D + 1)
D, N = map(int,input().split())
if N != 100:
    print(N*100**D)
else:
    print((N+1)*100**D)


D, N = map(int,input().split())
print(N*100**D)

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

Verdicts: Runtime Error

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 = list(map(int, input().split()))
if 0 <= d and d <= 2 and 0 <= n and n <= 100:
    print(str(100 ** d * n))

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

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


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


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


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


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


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


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


A = int(input())
B = int(input())
if A <9 and B < 9:
    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

Runtime Error

Runtime Error

Runtime Error

Runtime Error

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())
print("Yay") if a+b % 16 > min(a,b) else print(":(")

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

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

a, b = map(int, input().split())
print('Yay!' if (a<=8)*(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):
d,n = map(int,input().split())
if n != 100:
    print(n*(100**d))
else:
    print(100*(100**d)+100**d)

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())
print(100**D*N if N<100 else 100**D*101)

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

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

D,N=map(int, input().split())
num=100**D
print(N*num)

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

Verdicts: Wrong Answer

Wrong Answer

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 = map(int, input().split())
print(n * 100 ** d) if n < 100 else print((n + 1) * 100 **d)

a, b = map(int, input().split())
if a <= 16 /2 and b <= 16 / 2:
    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 && b > 8 :
  print (":(")
elif
  print ("Yay!")

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

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


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 or b > 8:
	print(':(')
else:
	print('Yey!')

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Runtime Error

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=input().split()
a=int(a)
b=int(b)

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

d,n=input().split()
d=int(d)
n=int(n)

if d==0:
	print(n)
elif d==1:
	print(n*10)
else:
	print(n*10000)

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

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

d,n=input().split()
d=int(d)
n=int(n)

if d==0:
	if n==100:
		print(101)
	else:
		print(n)
elif d==1:
	if n==100:
		print(10100)
	else:
		print(n*10)
else:
	print(n*10000)

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

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

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

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,b = map(int, input().split())
if a<9 & b<9:
  print("Yay!")
else:
  print(":(")

a,b = map(int, input().split())
if a<9 and b<9:
  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("Yey!")
else:
    print(":()")



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



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

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


Verdicts: Wrong Answer

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, B = map(int, input().split())

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

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

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

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

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

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


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

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

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

if a+b=<16:
  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(':(' if a > 8 or b > 8 'Yay!')

a,b = map(int,input().split())
print(':(' if a > 8 or b > 8 else '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=map(int,input().split())
if max([A,B])>8:
  print(":(")
else:
  print("Yay")

A,B=map(int,input().split())
if max([A,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):
a,b=map(int,input().split())
if abs(a-b)>2:
  print(':(')
else:
  print('Yay')

a,b=map(int,input().split())
if abs(a-b)>2:
  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):
a, b = map(int, input().split())
if a<=8 and b <=8:
    print("Yes!")
else:
    print(":(")

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

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

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

Verdicts: Wrong Answer

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

import sys

stdin = sys.stdin

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

a, b = na()

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

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

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

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

if abs(a-b) < 2:
    print("Yay!")
else:
    printa, b = map(int, input().split())

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

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

if abs(a-b) < 2:
    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):
a,b=map(int,input().split())
if (a>8) or (b>8):
    print(':(')
else:
    print('Yey!')

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

a,b=map(int,input().split())
if (a>8) or (b>8):
    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):
import numpy as np

N, M = list(map(int, input().split()))

scores = []
for _ in range(N):
    scores.append(list(map(int, input().split())))

scores = np.array(scores)
signs = [-1, 1]
answer = 0
for sign_k in signs:
    kireisa = sign_k
    for sign_o in signs:
        oishisa = sign_o
        for sign_n in signs:
            ninki = sign_n

            kireisa_score = scores[:, 0] * kireisa
            oishisa_score = scores[:, 1] * oishisa
            ninki_score = scores[:, 2] * ninki

            sorted_score = np.stack((kireisa_score, oishisa_score, ninki_score), axis=1)
            sums = [sum(s) for s in sorted_score]

            sums.sort()
            sums.reverse()
            if sum(sums[:M]) > answer:
                answer = sum(sums[:M])

print(answer)


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

for i in range(16):
    if i % 2 == 0 and A > 0:
        A -= 1
    elif i % 2 == 1 and B > 0:
        B -= 1

if A == 0 and B == 0:
    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 > 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: 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().split()
if int(a[0]) == 0:
    if int(a[1]) != 100:
        print(int(a[1]))
    else:
        print("101")
elif int(a[0]) == 1:
    if int(a[1]) != 100:
        print(int(a[1]) * 100)
    else:
        print("10100")
else:
    if int(a[1]) != 100:
        print(int(a[1]) * 10000)
    else:
        print("1010000")

x = input().split()
x = [int(n) for n in x]
if x[0] <= 8 and x[1] <= 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( abs(A - B) == 1):
  print('yey!)
        
else:
  print(':(')

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

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('Yes')
else:
	print('No')


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

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


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

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


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

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


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

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


l = input().split()
a = int(l[0])
b = int(l[1])

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


Verdicts: Runtime Error

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):
# input
A, B = map(int, input().split())

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


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

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

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

if A >= 9 or B >= 9:
    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):
#--------------------------------------------

import sys
import math
#--------------------------------------------
D, N = map(int, input().split())

if D ==100:
    D=101
a=100**D
print(a*N)

#--------------------------------------------

import sys
import math
#--------------------------------------------
D, N = map(int, input().split())
 
if N ==100:
    N=101
a=100**D
print(a*N)

#--------------------------------------------

import sys
import math
#--------------------------------------------
D, N = map(int, input().split())

if N ==100:
    N=101

ans=100**D
print(N*ans)

#--------------------------------------------

import sys
import math
#--------------------------------------------
D, N = map(int, input().split())

if N ==100:
    N=101

ans=(100**D)*N
print(ans)

#--------------------------------------------

import sys
import math
#--------------------------------------------
D, N = map(int, input().split())

if N ==100:
    N=101
a=100**D
print(a*N)

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

else:
    print(":(")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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,b=map(int,input().split())
if abs(a-b)<=1:
    print('Yey!')
else:
    print(':(')


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

if a[0] == 0:
    wk = 1 * a[1]
    print(wk)
elif a[0] == 1:
    wk = int,pow(100,1) * a[1]
    print(wk)
elif a[0] == 2:
    wk = int,pow(100,2) * a[1]
    print(wk)


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

if a[0] == 0:
    wk = 1 * a[1]
    print(wk)
elif a[0] == 1:
    wk = 100 * a[1]
    print(wk)
elif a[0] == 2:
    wk = 10000 * a[1]
    print(wk)


a = list(map(int,input().split()))
if a[0] <= 8:
    if a[1] <= 8:
        print("Yay!")
    else:
        print(":(")
else:
    print(":(")


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

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)


ui = input()

D, N = int(ui.split()[0]), int(ui.split()[1])

print(100**D*(N + int(N/100)))

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

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


ui = input()
D, N = int(ui.split()[0]), int(ui.split()[1])
if D <= 8 and N <= 8:
    print('Yay!')
else:
    print(':(')

Verdicts: Runtime Error

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):
a = int(input()) 
b = int(input())
if a>9 or b>9:
    print(":(")
else:
    print("Yay!")

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


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



Verdicts: Wrong Answer

Accepted