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())
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):
#100

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

#100

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

#100

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

#100

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

Verdicts: Wrong Answer

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

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

#coding : utf-8

if __name__ == "__main__":
    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):
N,M=map(int,input().split()) 
ListPPP=[]
ListPPM=[]
ListPMP=[]
ListMPP=[]
ListPMM=[]
ListMPM=[]
ListMMP=[]
ListMMM=[]
for i in range(0,N,1):
  x,y,z=map(int,input().split())
  ListPPP.append(x+y+z)
  ListPPM.append(x+y-z)
  ListPMP.append(x-y+z)
  ListMPP.append(-x+y+z)
  ListPMM.append(x-y-z)
  ListMPM.append(-x+y-z)
  ListMMP.append(-x-y+z)
  ListMMM.append(-x-y-z)

MAXList=[]
a=0;b=0;c=0;d=0;e=0;f=0;g=0;h=0


ListPPP.sort()
for i in range(0,M,1):
  a+=int(ListPPP[-1-i])
  
ListPPM.sort()
for i in range(0,M,1):
  b+=int(ListPPM[-1-i])

ListPMP.sort()
for i in range(0,M,1):
  c+=int(ListPMP[-1-i])

ListMPP.sort()
for i in range(0,M,1):
  d+=int(ListMPP[-1-i])

ListPMM.sort()
for i in range(0,M,1):
  e+=int(ListPMM[-1-i])


ListMPM.sort()
for i in range(0,M,1):
  f+=int(ListMPM[-1-i])


ListMMP.sort()
for i in range(0,M,1):
  g+=int(ListMMP[-1-i])

ListMMM.sort()
for i in range(0,M,1):
  h+=int(ListMMM[-1-i])
  
MAXList.append(a)
MAXList.append(b)
MAXList.append(c)
MAXList.append(d)
MAXList.append(e)
MAXList.append(f)
MAXList.append(g)
MAXList.append(h)
print(max(MAXList))

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


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


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


numA,numB = map(int,input().split())
if(numA <=8 and numB <= 8):
    print('Yay!')
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):
N = input()
number = input()

a = number.split()
n_list=[]
count=0



for num in a:
    num = int(num)
    if num % 2 == 0:
        n_list.append(num)


if n_list != []:
    maxnum = max(n_list)
    maxnum = maxnum/2
    for num2 in n_list:
        for i in range(maxnum):
            if num2 % 2**(i+1) == 0:
                count+=1


print(count)

number = input()
a = number.split()

D=int(a[0])
N=int(a[1])

if D==0:
    print(N)
elif D==1:
    answer = 100*N
    print(answer)
elif D==2:
    answer = 10000*N
    print(answer)


number = input()
a = number.split()

A=int(a[0])
B=int(a[1])

if A < 9 and B < 9:
    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):
x,y = (int(i) for i in input().split())
if y < 100:
    print(y*100**x)
else:
    print(((y+1)*100)**x)

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

if cake_a <= 8 and cake_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 -*-
A, B = map(int, input().split())
if(A<=8 and B<=8):
  print('Yey!')
else:
  print(':(')


# -*- coding: utf-8 -*-
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())
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 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):
d, n = map(int, input().split())
if d == 0:
   for i in range(1, n+1):
      ans = i
   print(ans)
elif d == 1:
   for i in range(1, n+1):
      ans = i * 100
   print(ans)
elif d == 2:
   for i in range(1, n+1):
      ans = i * 10000
   print(ans)

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


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

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 or B > 8: 
    res = ‘: (‘

else:
    res = ‘Yay!’

print(res)

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

ab = input()
a, b = ab.split()
A = int(a)
B = int (b)
if A > 8 or B > 8:
    res = ':('

else:
    res = 'Yay!'

print(res)


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

input = sys.stdin.readline

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

if ((16 - abs(a - b))*2 < (16 - min([a, b]))):
    print('Yay!')
else:
    print(':(')


import sys

input = sys.stdin.readline

a, b = map(int, input().rstrip().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):
n, m = map(int, input().split())
x = []
y = []
z = []
f = [[] for _ in range(8)]
for i in range(n):
    a = input()
    a = a.split(' ')
    a = list(map(int, a))
    xi = a[0]
    yi = a[1]
    zi = a[2]
    x.append(xi)
    y.append(yi)
    z.append(zi)
    fi = [0 for _ in range(8)]
    fi[0] = xi + yi + zi
    fi[1] = xi + yi - zi
    fi[2] = xi - yi + zi
    fi[3] = -xi + yi + zi
    fi[4] = xi - yi - zi
    fi[5] = -xi - yi + zi
    fi[6] = -xi + yi - zi
    fi[7] = -xi - yi - zi
    for j in range(8):
        f[j].append(fi[j])
def reversort(x):
    return list(reversed(sorted(x)))
f = list(map(reversort, f))
fmax = [0 for _ in range(8)]
for i in range(m):
    for j in range(8):
        fmax[j] += f[j][i]
print(max(fmax))

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().split())
print("Yay!" if a<=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):
import math

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

for i in range(1,N+1):
	if(i == 100):
		C = math.pow(100,D+1)
	C = math.pow(100,D) * i

print(int(C))

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):
print("yey!" if max(list(map(int, input().split())))<9 else ":(")

print("Yey!" if max(list(map(int, input().split())))<9 else ":(")

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

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, raw_input().split())

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

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

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

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

if N<=8 and M<= 8:
  print("Yay!")
else:
  print(":(")

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

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

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


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

sum_cnt = 0
for a in an:
    tmp = a
    cnt = 0
    while tmp % 2 == 0:
        cnt += 1
        tmp = tmp / 2

    sum_cnt += cnt

print(sum_cnt)


# -*- 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, b  = input().split()

if int(a) < 1 or int(b) < 1:
    print(":(")

if int(a) + int(b) > 16:
    print(":(")

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

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

if d == 0:
    print(1 * n)
if d == 1:
    print(100 * n)
if d == 2:
    print(10000 * n)

a, b  = input().split()

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

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

if d == 0:
    if n == 100:
        print(101)
    else:
        print(1 * n)
if d == 1:
    if n == 100:
        print(10001)
    else:
        print(100 * n)
if d == 2:
    if n == 100:
        print(1000001)
    else:
        print(10000 * n)

a, b  = input().split()

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



a, b  = raw_input().split()

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

a, b  = input().split()

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

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

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 = int(input())
B = int(input())

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



AB =  list(int(i) for i in input().split())

if AB[0] <= 8 and AB[1] <= 8:
    print("Yay!")
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 >= 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):
D, N = map(int, input().split())
if D == 0:
    if N == 100:
        print(101)
    else:
        print(N)
elif D == 1:
    print(100 * N)
else:
    print(10000 * 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<=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):
if max(int(input()),int(input()))>8:print(":(")
else:print("Yay!")

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

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

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

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

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

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())
ans=′Yay!′
if a>=9 or b>=9:
  ans=′:(′
print(ans)

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

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

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())
List = [list(map(int,input().split())) for i in range (a)]
newList = []
for i in range(0,a):
    n = 0
    for j in range (0,3):
        n = n + List[i][j]
    newList.append(n)
x = sorted(newList,reverse =True)
m = 0
for i in range (0,b):
    m = m + x[i]
print(m)    

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

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

Verdicts: Runtime Error

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=map(int,input().split());print(((N>99)+N)*100**D)

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

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):
#!/usr/bin/env python3

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

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


#!/usr/bin/env python3

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

print((100**d)*n)

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

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

print((10**d)*n)

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

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):
n = int(input().rstrip())
a = [int(v) for v in input().rstrip().split()]

count = 0

for v in a:
    t = v
    while t % 2 == 0:
        t = t / 2
        count += 1

print(count)


a, b = [int(v) for v in input().rstrip().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=input().split()
a=int(a)
b=int(b)
if a<=8:
  if b<=8:
    print("Yay!")
      else:
        print(":(")
else:
  print(":(")

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

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

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

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

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

Verdicts: 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 = 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):
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: 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 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 A => 9 or B => 9 :
    print(":(") 
else: 
    print("Yay!")

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

A,B = map(int,input().split())
print(":(") if A >= 9 or B >= 9 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):
from collections import deque
N = int(input())
A = [int(i) for i in input().split()]

d = deque(A)
c = 0
while(len(d)>0):
    tmp = d.pop()
    if tmp%2==0:
        c+=1
        d.append(tmp//2)
print(c)

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

A,B = [int(i) for i in input().split()]
if A<9 and B<9:
    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):
l=input.split()
a=int(l[0])
b=int(l[1])
if a<9 and b<9:
    print('Yay!')
else:
    print(':(')

l=input().split()
a=int(l[0])
b=int(l[1])
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):
inp = input()
print("a")
inp2 = inp.split()
A=int(inp2[0])
B=int(inp2[1])
if A >8 or B>8:
	print(":(")
else:
	print("Yay!")

inp = input()
inp2 = inp.split()
A=int(inp2[0])
B=int(inp2[1])
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):
a, b  = list(map(int ,input().rsplit()))

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

a, b  = list(map(int ,input().rsplit()))

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):
a, b = [int(i) for i in input().split(' ')]

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


a, b = [int(i) for i in 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 sys

args = sys.argv

if(args[1]>8 or args[2]>8):
    print(":(")
else:
    print("Yay!")

import sys

printf(sys.argv[1])

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

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):
d,n = map(int,input().split())
if n==100:
  n=101
print(n*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())
k = n
if n == 100:
    k += 1
for i in range(d):
    k *= 100
print(k)

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())
count = 0
for i in range(16):
  if count == 0:
    A -= 1
  else:
    B -= 1
if A <= 0 and B <= 0:
	print(Yay!)
else:
  print(:()

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


A, B = map(int, input().split())
count = 0
for i in range(16):
  if count == 0:
    A -= 1
    count += 1
  else:
    count -= 1
    B -= 1
if A <= 0 and B <= 0:
	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 = map(int, input().split())
print(int(str(N) + '00' * D) if N != 100 else int(str(N + 1) + '00' * D))


A, B = map(int, input().split())
print('Yay!' if (A * 2) <= 16 and (B * 2) <= 16 and A + B <= 16 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-1) <= 16 - A and B-1 <= 16 -B:
    print ("YES")
else:
    print("NO")

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

Verdicts: Wrong Answer

Accepted