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


def solve(d,n):
    if d==0:
        return(n)
    if d==1:
        return(100**1*n)
    if d==2:
        return(100**2*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()

import sys


def solve(a,b):
    if 8>=a and 8>=b:     
        return'Yay!'
    else:
        return':('



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

Verdicts: Wrong Answer

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

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

a,b = map(int,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

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().split())
if a>=9:
  print('')
elif b>=9:
  print(':(')
else:
  print('Yay!')


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

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

a,b=(int(x) for x in input().split())
if a>=9:
  print(':(')
elif b>=9:
  
  print(':(')
else:
  print('Yay!')


Verdicts: Runtime Error

Runtime Error

Runtime Error

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

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

a,b = map(int, input().split())
cake = [0]*16

if(a+b<=16):
    
    even=0
    while(a and even<16):
        cake[even]=True
        even+=2
        a-=1
    
    odd=1
    while(b and odd<16):
        cake[odd]=False
        odd+=2
        b-=1
    
    #print(cake)
    
    f=1
    
    for pc in cake:
        if(pc==0):
            print(":(")
            f=0
            break
        
    if(f):
        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

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

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

Verdicts: Wrong Answer

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

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

a,b =map(int, input().split())
if 9>a and 9>b:
    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:
  print(Yay!)
if B<=8:
  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):
import sys 
import math

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

if a<=8 & b<=8:
    print("Yey!")
else:
    print(":(")


import sys 
import math

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

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


import sys 
import math

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

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

Verdicts: Wrong Answer

Wrong Answer

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

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

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


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

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

cnt = 0

for i in range(n):
    while(True):
        if a[i] % 2 != 0:
            break
        else:
            a[i] = int(a[i] / 2)
            cnt += 1

print(cnt)


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

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

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


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

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

cnt = 0

for a in A:
    while (a % 2 == 0):
        cnt = cnt + 1
        a = a / 2

print(cnt)

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

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


Verdicts: Runtime Error

Wrong Answer

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

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

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

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

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

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

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

cakes = []
for i in range(n):
    cakes.append(input().split())

maxsum = 0
for kumiawase in itertools.combinations(cakes, m):
    x = y = z = 0
    for cake in kumiawase:
        x += int(cake[0])
        y += int(cake[1])
        z += int(cake[2])
    statussum = abs(x) + abs(y) + abs(z)
    if statussum > maxsum:
        maxsum = statussum
print(maxsum)


# coding:utf-8

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

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

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

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

a, b = list(map(int, input().rstrip().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):
# -*- coding: utf-8 -*-
import sys
# ----------------------------------------------------------------
# Use Solve Function

def solve(lines):
    A,B = map(int, lines.pop(0).split(' '))
    if A <= 8 and B <= 8:
        print('Yey!')
    else:
        print(':(')


#
# main
#

# 1. use list instead of stdin

# contents = '''\
# 2 9\
# '''


# 2. use stdin

lines = [x.strip() for x in sys.stdin.readlines()]

#
# solve !!
#
solve(lines)

# -*- coding: utf-8 -*-
import sys
# ----------------------------------------------------------------
# Use Solve Function

def solve(lines):
    A,B = map(int, lines.pop(0).split(' '))
    if A <= 8 and B <= 8:
        print('Yay!')
    else:
        print(':(')


#
# main
#

# 1. use list instead of stdin

# contents = '''\
# 2 9\
# '''


# 2. use stdin

lines = [x.strip() for x in sys.stdin.readlines()]

#
# solve !!
#
solve(lines)

Verdicts: Wrong Answer

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

Submission attempts (in order):
a,b=int(input())
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('Yah')
else:
    print(':(')
    


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


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


Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
# coding: utf-8
def main():
    A = int(input())
    B = int(input())
    if A > 8 or B > 8:
        print(":(")
    else:
        print("Yay!")

if __name__ == "__main__":
    main()

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

if __name__ == "__main__":
    main()

   


Verdicts: Runtime Error

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

Submission attempts (in order):
from sys import stdin, stdout
from math import sqrt
from collections import defaultdict
#t = int(stdin.readline().strip())
#R, L, C, Vin = [float(x) for x in stdin.readline().strip().split()]
A = int(stdin.readline().strip())
B = int(stdin.readline().strip())
print("Yay!" if (A <= 8 and B <= 8) else ":(")


from sys import stdin, stdout
from math import sqrt
from collections import defaultdict
#t = int(stdin.readline().strip())
#R, L, C, Vin = [float(x) for x in stdin.readline().strip().split()]
A = int(stdin.readline().strip())
B = int(stdin.readline().strip())
print("Yay!" if (A <= 8 and B <= 8) else ":(")


from sys import stdin, stdout
from math import sqrt
from collections import defaultdict
#t = int(stdin.readline().strip())
#R, L, C, Vin = [float(x) for x in stdin.readline().strip().split()]
A, B = [int(x) for x in stdin.readline().strip().split()]
print("Yay!" if (A <= 8 and B <= 8) 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):
# -*- coding: utf-8 -*-
a = int(input())
b = int(input())

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


# -*- coding: utf-8 -*-
a = int(input())
b = int(input())

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


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

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


Verdicts: Runtime Error

Runtime Error

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

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


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


Verdicts: Runtime Error

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

Submission attempts (in order):
A = int(input())
B = int(input())
if A <= 8 and B <= 8:
  print("Yay!")
elif 8 < A or B < 8:
  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):
l = [int(i) for i in input().split()]
if (l[0]<=8)and(l[1]<=8):
  print('Ywy!')
else:
  print(':(')

print('Yay!' if max([int(i) for i in input().split()]) <= 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):
l = input().split()
a = int(l[0])
b  int(l[1])
if (a>8) or (b>8):
    print(":(")
else:
    print("Yay!")


start = 0
for l in input():
    if start == 0:
        start += 1
    else:        
        l = list(map(int, input().split()))
        break
count = 0
for i in l:
    while True:
        if i%2 == 0:
            count += 1
            i = i/2
        else:
            break
print(count)

l = input().split()
a = int(l[0])
b = int(l[1])
if (a>8) or (b>8):
    print(":(")
else:
    print("Yay!")


Verdicts: Runtime Error

Runtime Error

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<9 and B<9 else ":(")

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

Verdicts: Runtime Error

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

Submission attempts (in order):
import sys

stdin = sys.stdin

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

a = ni()
b = ni()

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


import sys

stdin = sys.stdin

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

a,b = na()

if a >= 9 or b >= 9:
    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):
s = input()
print(s.count('+') - s.count('-'))

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

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

Verdicts: 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+n//99))

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

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

Verdicts: Wrong Answer

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

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

if A >= 8 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 = 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):
11 4

A, B = [int(i) for i in input().split()]

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

Verdicts: Runtime Error

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

Submission attempts (in order):
import sys
input = sys.stdin.readline
A, B = [int(x) for x in input().split()]
if A <= 8 and B <= 8:
    print("Yes")
else:
    print("No")

import sys
input = sys.stdin.readline
N = int(input())
N_str = list(str(N))
a = 0
for i in N_str:
    a += int(i)
if N % a == 0:
    print("Yes")
else:
    print("No")

import sys
input = sys.stdin.readline
A, B = [int(x) for x in 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):
N = int(input())
*A, = map(int, input().split())
ans = 0
for a in A:
  while a % 2 == 0:
    a //= 2
    ans += 1
print(ans)

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

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




a,b = input().split()
#print(a)
#print(b)

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




a,b = input().split()
#print(a)
#print(b)

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




Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
A,B = map(int,input().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=input().split(" ")
b=int(a[0])
c=int(a[1])
if a>8 or b>8:
  print(":(")
else:
  print("Yay!")

a=input().split(" ")
b=int(a[0])
c=int(a[1])
if c>8 or b>8:
  print(":(")
else:
  print("Yay!")

Verdicts: Runtime Error

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

Submission attempts (in order):
A=int(input())
B=int(input())
print(['Yay!',':('][A>8 or B>8])

A,B=map(int,input(),split())
print(['Yay!',':('][A>8 or B>8])

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

Verdicts: Runtime Error

Runtime Error

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

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

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


Verdicts: Wrong Answer

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

Submission attempts (in order):
A, B = map(int, input().split())
if(A+B>8):
    print(":(")
elif(A+B<=8):
    print("Yay!")

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

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

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

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

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):
from collections import deque

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

C = 0
while True:
    if len([n for n in A if n > 0 and n % 2 == 0]) == 0:
        break
    
    odds3 = [n * 3 for n in A if n % 2 != 0]
    evens = sorted([n for n in A if n % 2 == 0])
    evens3 = [n * 3 for n in evens[:-1]]
    evens2 = [n // 2 for n in [evens[-1]]]
    A = odds3 + evens3 + evens2
    C += 1
print(C)


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


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


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


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


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


Verdicts: Runtime Error

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

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

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


Verdicts: Runtime Error

Runtime Error

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

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

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

Verdicts: Runtime Error

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

Submission attempts (in order):
N = int(input())
li = list(map(int, input().split()))
a = 0
while any(j % 2 == 0 for j in li):
  for i in range(N):
    if li[i]%2 == 0:
      li[i] = li[i]/2
      a += 1
      break
print(a)

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):
D, N = map(int,input().split())
if D==0 and N<100:
  print(N)
elif D==0 and N==100:
  print(N-1)
elif D==1 and N<100:
  print(100*N)
elif D==1 and N==100:
  print(100*N-1)
elif D==2 and N<100:
  print(10000*N-1)
elif D==2 and N==100:
  print(10000*N-1)

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

Verdicts: Wrong Answer

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

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

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

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

Verdicts: Runtime Error

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

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

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


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

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


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

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


Verdicts: Wrong Answer

Wrong Answer

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

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

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

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

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

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

if A<9 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=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<=b:
    print('Yay!')
else:
    print(': (')

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


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

Verdicts: Runtime Error

Runtime Error

Runtime Error

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("Yay!")

Verdicts: Wrong Answer

Accepted