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

if(a[0]<=8 and a[1]<=8):
  print("Yay!")
else:
  print(":(")

a = input().split()
 
if(int(a[0])<=8 and int(a[1])<=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 = [int(x) for x in input().split()]

print(pow(10,d)*n)

#coding:utf-8
import sys

input_nums = [int(x) for x in split(readline())]

if len(input_num) > 2 :
	sys.exit("illegal input")
    
if (sum(input_nums)) > 16:
  sys.exit("illegal input")
  
if (min(input_nums)) < 1:
  sys.exit("illegal input")
  
if (max_num = max(input_nums)) > 16:
  sys.exit("illegal input")
elif max_num > 8:
  print(":(")
else :
  print('Yay!')

d,n = [int(x) for x in input().split()]

if n == 100:
  print(pow(100,d)*101)
else:
  print(pow(100,d)*n)

d,n = [int(x) for x in input().split()]

print(pow(100,d)*n)

d,n = [int(x) for x in input().split()]

if n == 100:
  print(pow(100,d)*101)
else:
  print(pow(100,d)*n)

#coding:utf-8
import sys

input_nums = [int(x) for x in sys.stdin.readline().split()]

if len(input_nums) > 2 :
	sys.exit("illegal input")
    
if (sum(input_nums)) > 16:
  sys.exit("illegal input")
  
if (min(input_nums)) < 1:
  sys.exit("illegal input")

max_num = max(input_nums)
if max_num > 16:
  sys.exit("illegal input")
elif max_num > 8:
  print(":(")
else :
  print('Yay!')

Verdicts: 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 = 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):
from sys import stdin
A, B = [int(x) for x in stdin.readline().rstrip().split()]
if A<=8 and B<=8:
    print("Yey!")
else:
    print(":(")

from sys import stdin
A, B = [int(x) for x in stdin.readline().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):
# -*- coding: utf-8 -*-
"""
Created on Sat Jun 16 23:09:00 2018

@author: sakas
"""
A,B = map(int(input()))

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


# -*- coding: utf-8 -*-
"""
Created on Sat Jun 16 23:09:00 2018

@author: sakas
"""
A = input()
B = input()
if A>=9 or B>=9:
    print(":(")
else:
    print("Yay!")


# -*- coding: utf-8 -*-
"""
Created on Sat Jun 16 23:09:00 2018

@author: sakas
"""
A = input()
B = input()
if A>9 or B>9:
    print(":(")
else:
    print("Yay!")


# -*- coding: utf-8 -*-
"""
Created on Sat Jun 16 23:09:00 2018

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


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
a,b = map(int,input())
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(":(")

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<9&&b<9:
  print("Yay!")
  else:
    print(":(")

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

Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
D, N = map(int, input().split())
if (A < 9) and (B < 9):
    print("Yay!")
else:
    print(":(")


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


A, N = 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: 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, b = int(intput())
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 or b > 8:
  print("No")
else:
  print("Yes")

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 A > 8 or B > 8:
  print("Yay")
else:
  print(":(")

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):
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):
try:
    A=int(input())
    B=int(input())
except:
    A,B=[int(i) for i in input().split(" ")]
if A<=8 and B<=8:
    print("Yay!")
else:
    print(":(")


A,B=[int(i) for i in 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):
# -*- coding: utf-8 -*-
A,B=map(int,input().split)
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(":(")

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

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 = int(input()), 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, 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<9 and b<9:
  print("yay!")
else :
  print(":(")


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

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

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):
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("Yes!")
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())
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):
A = int(input())
B = int(input())

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

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

if A < 9 and B < 9:
    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 or b > 8:
    print(":(")
else:
    priunt("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 if A-B <=1 or B-A <=1:
	print("Yay!")
else:
	print(":(")


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

if A%2==0 and B%2==0:
	print("Yay!")
else:
	if A-B <=1 or B-A <=1:
		print(":(")

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

a,b = map(int,input().split())
if a > 8 or 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 = [int(i) for i in input().split()] 
if a[0]<= 8 and a[1]<=8:
 print('Yes')
else:
 print(':(')

a = [int(i) for i in input().split()] 
if a[0]<= 8 and a[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):
l=list(map(int,input().split()))
if(all(l)<=8):
  print('Yah!')
else:print(':(')

l=list(map(int,input().split()))
print(l)
if(all(l[x] <= 8 for x in range(len(l)) )):
  print('Yay!')
else:print(':(')

a,b=map(int,input().split())
print('Yay!' if (a<9 and b<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,input().split())
if a == 0 and b == 100:
  print(101)
elif a == 1 and b == 100:
  print(10100)
elif a == 2 and b == 100:
  print(1010000)
else:
  print((100**a)*b)


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


D,N = map(int, input().split())
if N <= 99:
  print(100**D * N)
else:
  print(100**D * 101)

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=int(input())
B=int(input())
if A+B<=8:
    print('Yay!')
elif abs(A-B)<=(16-min([A,B])*2)/2:
    print('Yay!')
else:
    print(':(')


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


A,B=map(int, input().split(' '))
if A+B<=8:
    print('Yay!')
elif abs(A-B)<=(16-min([A,B])*2)/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):
#! /usr/bin/env python3

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

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

s=input();print(['Yay!',':('][len(s)>3or'9'in s])

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(input())
if a>6 or b>6:
    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())

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


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 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 + b > 16 or 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

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

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

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


if __name__ == "__main__":
    resolve()


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

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


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

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


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

if b - a == c - b:
    print('YES')
else:
    print('NO')


#!/usr/bin/env python3
import sys


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

    print('Yay!')
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)


if __name__ == '__main__':
    main()


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

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

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

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


Verdicts: 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 b < a:
  a, b = b, a
if (16 - b - 2 <= a):
  print('Yay!')
else:
  print(':(')


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

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Submission attempts (in order):
import sys


def solve(d,n):
    N=n%100
    if d != 0:
        return (100**d)*n
    elif d == 100:
        return (100*d)*n
    else:
        return n


def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

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

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
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<9 and B<9 else ":(")

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

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

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


Verdicts: Runtime Error

Accepted
Problem: E869120's and square1001's 16-th birthday is coming soon.   Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan- shaped pieces.  E869120 and square1001 were just about to eat A and B of those pieces, respectively,   when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".  Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

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

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

kaku_a = 360/16 * a
kaku_b = 360/16 * b

if kaku_a < 180 and kaku_b < 180:
    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())
kaku_a = 360/16 * a
kaku_b = 360/16 * b
if kaku_a <= 180 and kaku_b <= 180:
    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

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,raw_input().split())
if(a > 8 || 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):
def LI():
	return [ int(s) for s in input().split() ]
  
a,b = LI()

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

def LI():
	return [ int(s) for s in input().split() ]
  
a,b = LI()
 
print('Yay!') if a <= 8 and b <= 8 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 0 < a < 9 and 0 < b < 9:
    print('YaY!')
else:
    print(':(') 

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

Verdicts: Wrong Answer

Accepted
Problem: As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}.   Snuke, an employee, would like to play with this sequence.  Specifically, he would like to repeat the following operation as many times as possible:                For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3".   Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer.   At most how many operations can be performed?

Submission attempts (in order):
l = input()
li = list(map(int, input().split()))
m = 0
for i in l:
  n = li[i]
  while not n % 2:
    m += 1
    n /= 2
else:
  print(m)

l = input()
li = list(map(int, input().split()))
m = 0
for i in range(l):
  n = li[i]
  while not n % 2:
    m += 1
    n /= 2
else:
  print(m)

li = list(map(int, input().split()))
m = 0
for i in range(len(li)):
  n = li[i]
  while not n % 2:
    m += 1
    n /= 2
else:
  print(m)

l = int(input())
li = list(map(int, input().split()))
m = 0
for i in range(l):
  n = li[i]
  while not n % 2:
    m += 1
    n /= 2
else:
  print(m)

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}.   Snuke, an employee, would like to play with this sequence.  Specifically, he would like to repeat the following operation as many times as possible:                For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3".   Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer.   At most how many operations can be performed?

Submission attempts (in order):
n=int(input())
A=list(map(int,input().split()))
cnt=0
if any(A%2==0):
    cnt+=1
print(cnt)





n=int(input())
A=list(map(int,input().split()))
cnt=0
for a in A:
    while a%2 == 0:
        cnt += 1
        a = a//2
print(cnt)    



Verdicts: Runtime Error

Accepted
Problem: As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}.   Snuke, an employee, would like to play with this sequence.  Specifically, he would like to repeat the following operation as many times as possible:                For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3".   Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer.   At most how many operations can be performed?

Submission attempts (in order):
import math
N = int(input())
A = list(map(int, input().split(" ")))


B = [math.log2(i) for i in A]

tmp = 0
for i in range(N):
    if B[i] % 1 == 0:
        tmp += B[i]
print(tmp)

import math
N = int(input())
A = list(map(int, input().split(" ")))

cnt = 0
for i in range(N):
    while A[i] >= 2 and A[i] % 2 == 0:
        cnt += 1
        A[i] //= 2
print(cnt)

Verdicts: Wrong Answer

Accepted
Problem: As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}.   Snuke, an employee, would like to play with this sequence.  Specifically, he would like to repeat the following operation as many times as possible:                For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3".   Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer.   At most how many operations can be performed?

Submission attempts (in order):
n = int(input())
l = [int(x) for x in input().split()]
s = 0
for i in range(n):
  while l[i]%2==1:
    l[i] = l[i]//2
    s += 1
print(s)

n = int(input())
l = [int(x) for x in input().split()]
s = 0
for i in range(n):
  while l[i]%2==0:
    l[i] = l[i]//2
    s += 1
print(s)


Verdicts: Wrong Answer

Accepted
Problem: As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}.   Snuke, an employee, would like to play with this sequence.  Specifically, he would like to repeat the following operation as many times as possible:                For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3".   Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer.   At most how many operations can be performed?

Submission attempts (in order):
n = int(input())
suuretu = [int(x) for x in input().split()]
answer = 0
 
for i in suuretu:
    answer += calculate(i)
 
def calculate(i):
    a = 0
    while i % 2 == 0:
        i = i / 2
        a += 1
    return a

print(answer)

suuretu = [int(x) for x in input().split()]
answer = 0

for i in suuretu:
    answer += calculate(i)

def calculate(i):
    a = 0
    while i % 2 == 0:
        i = i / 2
        a += 1

    return a


print(answer)

suuretu = [int(x) for x in input().split()]
answer = 0

for i in suuretu:
    answer += calculate(i)


def calculate(int):
    a = 0
    while int % 2 == 0:
        int = int / 2
        a += 1
    
    return a 

print(answer)

suuretu = [int(x) for x in input().split()]
n = len(suuretu)
answer = 0

for i in suuretu:
    calculate(i)

def calculate(int):
    while int%2 == 0:
        int = int / 2
        answer += 1

print (answer)

n = int(input())
suuretu = [int(x) for x in input().split()]
answer = 0
 
for i in suuretu:
    answer += calculate(i)
 
def calculate(i):
    a = 0
    while i % 2 == 0:
        i = i / 2
        a += 1
    return a

print(answer)

n = int(input())
suuretu = [int(x) for x in input().split()]
answer = 0

for i in suuretu:
    answer += calculate(i)

def calculate(i):
    a = 0
    while i % 2 == 0:
        i = i / 2
        a += 1

    return a


print(answer)

#!/usr/bin/env python3
import sys


def solve(N: int, a: "List[int]"):
    answer = 0
    for i in range(N):
        while a[i]%2 == 0:
            answer += 1
            a[i] //= 2
    
    print(answer)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    a = [int(next(tokens)) for _ in range(N)]  # type: "List[int]"
    solve(N, a)

if __name__ == '__main__':
    main()


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}.   Snuke, an employee, would like to play with this sequence.  Specifically, he would like to repeat the following operation as many times as possible:                For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3".   Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer.   At most how many operations can be performed?

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

s = 0
for i in range(n):
  while a[i] > 0:
    a[i] //= 2
    s +- 1
print(s)

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

s = 0
for i in range(n):
  while a[i] % 2 == 0:
    a[i] //= 2
    s += 1
print(s)


Verdicts: Wrong Answer

Accepted
Problem: As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}.   Snuke, an employee, would like to play with this sequence.  Specifically, he would like to repeat the following operation as many times as possible:                For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3".   Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer.   At most how many operations can be performed?

Submission attempts (in order):
n = int(input())
A = input().split()
print(A)

count = 0
for i in range(len(A)):
    while(int(A[i]) % 2 == 0):
        count += 1
        A[i] = int(A[i])/2
print(count)


n = int(input())
A = input().split()

count = 0
for i in range(len(A)):
    while(int(A[i]) % 2 == 0):
        count += 1
        A[i] = int(A[i])/2
print(count)


Verdicts: Wrong Answer

Accepted
Problem: As AtCoder Beginner Contest 100 is taking place, the office of AtCoder, Inc. is decorated with a sequence of length N, a = {a_1, a_2, a_3, ..., a_N}.   Snuke, an employee, would like to play with this sequence.  Specifically, he would like to repeat the following operation as many times as possible:                For every i satisfying 1 \leq i \leq N, perform one of the following: "divide a_i by 2" and "multiply a_i by 3".   Here, choosing "multiply a_i by 3" for every i is not allowed, and the value of a_i after the operation must be an integer.   At most how many operations can be performed?

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

r = 0
for aa in a:
  j = 0
  while aa // (2 ** j) == 0:
    j += 1
  r += j
print(r)

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

r = 0
for aa in a:
  j = 0
  while aa // (2 ** j) == 0:
    j += 1
  r += j-1
print(r)

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

r = 0
for aa in a:
  j = 0
  while aa % (2 ** j) == 0:
    j += 1
  r += j-1
print(r)

Verdicts: Wrong Answer

Wrong Answer

Accepted