Problem:


Score: 100 points

Problem Statement

E869120's and square1001's 16-th birthday is coming soon.

Takahashi from AtCoder Kingdom gave them a round cake cut into 16 equal fan-shaped pieces.

E869120 and square1001 were just about to eat A and B of those pieces, respectively,

when they found a note attached to the cake saying that "the same person should not take two adjacent pieces of cake".

Can both of them obey the instruction in the note and take desired numbers of pieces of cake?

Constraints

A and B are integers between 1 and 16 (inclusive).

A+B is at most 16.

Input

Input is given from Standard Input in the following format:

A B

Output

If both E869120 and square1001 can obey the instruction in the note and take desired numbers of pieces of cake, print Yay!; otherwise, print :(.

Sample Input 1

5 4

Sample Output 1

Yay!

Both of them can take desired number of pieces as follows:

Sample Input 2

8 8

Sample Output 2

Yay!

Both of them can take desired number of pieces as follows:

Sample Input 3

11 4

Sample Output 3

:(

In this case, there is no way for them to take desired number of pieces, unfortunately.



Sample input:
5 4


Sample output:
Yay!

Submission status: Runtime Error

Solution code:
a, b = map(int, input())

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

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

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

Submission status: Runtime Error

Solution code:
x = int(input())

print(x)

print("Hello World!")

Submission status: Runtime Error

Solution code:
print('Hello World!'')

Submission status: Runtime Error

Solution code:
4444
1111
aaaa
a
a
a
a
a
a
print('Hello World!'')

Submission status: Runtime Error

Solution code:
4444
1111
aaaa
a
a
a
a
a
a

Submission status: Runtime Error

Solution code:
4545454
5455454
4
4545
44444444444444444444444444440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

0000000000044444

Submission status: Runtime Error

Solution code:
A=list(map(int,input().split()))

if max(A)<=8:
  print(Yay!)
else:
  print(:()

Submission status: Runtime Error

Solution code:
import os
import sys
from collections import defaultdict, Counter
from itertools import product, permutations,combinations, accumulate
from operator import itemgetter
from bisect import bisect_left,bisect
from heapq import heappop,heappush,heapify
from math import ceil, floor, sqrt, gcd
from copy import deepcopy

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

Submission status: Runtime Error

Solution code:
n,m = map(int, input().split())
a=[]
for i in range(n):
    a.append(tuple(map(int, input().split())))

dp = []
for i in range(m+1):
    dp.append([0 for j in range(n+1)])

def f(fn):
    global dp, a
    for i in range(1,m+1):
        for j in range(1,n+1):
            dp[i][j] = max(dp[i][j-1], dp[i-1][j-1] + fn(a[j-1]))

ans = []
f(lambda x: x[0]+x[1]+x[2])
ans.append(dp[m][n])
f(lambda x: x[0]+x[1]-x[2])
ans.append(dp[m][n])
f(lambda x: x[0]-x[1]+x[2])
ans.append(dp[m][n])
f(lambda x: x[0]-x[1]-x[2])
ans.append(dp[m][n])
f(lambda x: -x[0]+x[1]+x[2])
ans.append(dp[m][n])
f(lambda x: -x[0]+x[1]-x[2])
ans.append(dp[m][n])
f(lambda x: -x[0]-x[1]+x[2])
ans.append(dp[m][n])
f(lambda x: -x[0]-x[1]-x[2])
ans.append(dp[m][n])

print(max(ans))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n, m = map(int, input().spilit())

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

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

if a < 9 & b < 9:
    input('Yay!')
else:
    input(':(')

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

if max(a,b) < 9:
    input('Yay!')
else:
    input(':(')

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

if a > 8 and b > 8:
    input(":(")
else:
    input('Yay!')

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

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

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

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

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())
maxcake = max(a,b)
if maxcake < 9:
    input('Yay!')
else:
    input(':(')

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

if max(a,b) <= 8:
    input('Yay!')
else:
    input(':(')

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())

if a < 9 and b < 9:
    input('Yay!')
else:
    input(':(')

Submission status: Runtime Error

Solution code:
a,b = map(int,input.split())

if a < 9 and b < 9:
    input('Yay!')
else:
    input(':(')

Submission status: Runtime Error

Solution code:
a, b = int(input())

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

Submission status: Runtime Error

Solution code:
A - Happy Birthday!

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b= map(int,input().split())

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

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline

def main():
    N = int(input())
    

if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x,y=map(int,input().split(" "))
if(x<=8 && y<=8) print("Yay!")
else print(":(")

Submission status: Runtime Error

Solution code:
x,y= map(int,input().split(" "))
if(x<=8 && y<=8) print("Yay!")
else: print(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
number_A=(imput(A))
number_B=(imput(B))
if number_A<=8 and number_B<=8:
  print('Yay!')
else:
  print(':(')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A=int(imput())
B=int(imout())
if A<=8 and B<=8:
  print('Yay!')
else:
  print(':(')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
line = input()
num_a, num_b = [int(n) for n in line.split()][0]
is_it_possible = "Yay!"
if num_a > 8 or num_b > 8:
    is_it_possible = ":("
print(is_it_possible)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
if(a + b > 16):
    print(":(")
elif(a <= 8 and b <= 8):
    print("Yay!")
else:
    print(":(")

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
#print(n)
#print(a)
count=0
flag=True
while(flag):
    flag=False
    for i in range(n):
        if(a[i]%2==0):
            #print(i)
            #a=list(map(lambda x:x*3,a))
            a[i]=int(a[i]/2)
            #print(a)
            count+=1
            flag=True
            break
print(count)

Submission status: Runtime Error

Solution code:
N = int(input())
*A, = map(int, input().split())
ans = 0
for a in A:
  while a % 2 == 0:
    a //= 2
    ans += 1
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
#print(n)
#print(a)
count=0
i=0
flag=True
while(flag):
    flag=False
    for i in range(n):
        if(flag==True):
            a[i]=a[i]*3
        elif(a[i]%2==0):
            #print(i)
            a[i]=a[i]/2
            count+=1
            flag=True
        else:
            a[i]=a[i]*3
print(count)

Submission status: Runtime Error

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

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())
List = [list(map(int,input().split())) for i in range (a)]
newList = []
for i in range(0,a):
    n = 0
    for j in range (0,3):
        n = n + List[i][j]
    newList.append(n)
x = sorted(newList,reverse =True)
m = 0
for i in range (0,b):
    m = m + x[i]
print(m)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

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

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

Submission status: Runtime Error

Solution code:

A,B= input().split()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
a=input()
b=input()
if a-b<2 and b-a<2:
  print "Yay!"
else：
  print ":("

Submission status: Runtime Error

Solution code:
a,b=map(int,raw_input().split())
if a-b<2:
  print "Yay!"
else：
  print ":("

Submission status: Runtime Error

Solution code:
input()
print(sum([bin(i)[::-1].index('1') for i in map(int,input().split())]))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
e8, s1 = map(int, raw_input().split())
e8 = input()
s1 = input()
if e8  > 8 or s1 > 8:
    print ":("
else:
    print  "Yay!"

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b =map(int, input().spulit())

c = abs(a-b)
print('Yey!' if c<=2 else ':(')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import java.util.*;
import static java.lang.System.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        if (A <= 8 && B <= 8) {
            out.print("Yay!");
        } else {
            out.print(":(");
        }
        
    }
}

Submission status: Runtime Error

Solution code:
import java.util.*;
import static java.lang.System.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = 0;
        if (A < B) {
            C = 16 - A * 2;
            if (C / 2 >= (B - A)) {
                out.print("Yay!");
            }else{
                out.print(":(");
            }
        } else if (A > B) {
            C = 16 - B * 2;
            if (C / 2 >= (A - B)) {
                out.print("Yay!");
            }else{
                out.print(":(");
            }
        } else {
            if (A <= 8 && B <= 8) {
                out.print("Yay!");
            }else{
                out.print(":(");
            }
        }
        
        
        
        
       
    }
}

Submission status: Runtime Error

Solution code:
import java.util.*;
import static java.lang.System.*;
import java.lang.Math;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = 0;
        if (A < B) {
            C = 16 - A * 2;
            if (C / 2 >= (B - A)) {
                out.print("Yay!");
            }else{
                out.print(":(");
            }
        } else if (A > B) {
            C = 16 - B * 2;
            if (C / 2 >= (A - B)) {
                out.print("Yay!");
            }else{
                out.print(":(");
            }
        } else {
            if (A <= 8 && B <= 8) {
                out.print("Yay!");
            }else{
                out.print(":(");
            }
        }
        
        
        
        
       
    }
}

Submission status: Runtime Error

Solution code:
import java.util.*;
import static java.lang.System.*;
import java.lang.Math;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        if (A < B) {
            int C = 16 - A * 2;
            if (C / 2 >= (B - A)) {
                out.print("Yay!");
            }else{
                out.print(":(");
            }
        } else if (A > B) {
            int C = 16 - B * 2;
            if (C / 2 >= (A - B)) {
                out.print("Yay!");
            }else{
                out.print(":(");
            }
        } else {
            if (A <= 8 && B <= 8) {
                out.print("Yay!");
            }else{
                out.print(":(");
            }
        }
        
        
        
        
       
    }
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B = map(int,input().split())

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

Submission status: Runtime Error

Solution code:
a, b = map(int,input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
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")

Submission status: Runtime Error

Solution code:
# データ読み込み

import sys
from collections import deque

def input_data(d):
  t = sys.stdin.read()
  if t:
    return t
  else:
    if d[0] == "\n":
      d = d[1:]
    if d[-1] == "\n":
      d = d[:-1]    
    return d

A, B  = map(int,input_data().split())
A
out = ":("
if A <= 6 and B <= 6:
  out = "Yay!"

print(out)

Submission status: Runtime Error

Solution code:
import sys

a, b = map(int, sys.stdin.readline().split()))

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

Submission status: Runtime Error

Solution code:
import sys

a, b = map(int, sys.stdin.readline())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print("Yay!" if int(input())<9 and int(input())<9 else ":(")

Submission status: Runtime Error

Solution code:
a = input().split()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())

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

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())

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

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
if int(input()) <= 8 and int(input()) <= 8:
  print("Yay!")
else:
  print(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split());print("Y:a(y !"[a>8or8<b::2])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import numpy as np
N, M = [int(str) for str in input().strip().split()]
cakes = np.array([[int(str) for str in input().strip().split()] for i in range(N)])

def calc_score(choised_cakes):
    return sum([abs(sum(para)) for para in choised_cakes.T])

score_list = []
for i in range(3):
    sorted_cakes = cakes[np.argsort(cakes[:, i])]
    for j in range(min(100, N - M)):
        score_list.append(calc_score(sorted_cakes[j:M, :]))
        score_list.append(calc_score(sorted_cakes[-M:-j, :]))

print(max(score_list))

Submission status: Runtime Error

Solution code:
import numpy as np
N, M = [int(str) for str in input().strip().split()]
cakes = np.array([[int(str) for str in input().strip().split()] for i in range(N)])

def calc_score(choised_cakes):
    return sum([abs(sum(para)) for para in choised_cakes.T])

score_list = []
for i in range(3):
    sorted_cakes = cakes[np.argsort(cakes[:, i])]
    for j in range(min(10, N - M)):
        score_list.append(calc_score(sorted_cakes[j:M, :]))
        score_list.append(calc_score(sorted_cakes[-M:-j, :]))

print(max(score_list))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input().split()

for i in a:
    if int(i) < 1 ind and int(i) > 8:
        print(":(")

print("Yay!")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input())
if(a+b%2==0):
    print('Yay!')
elif(a < 9 and b < 9):
    print('Yay!')
else:
    print(':(')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b -map(int, input().split())
if 9>a and 9>b:
    print("Yay!")
else:
    print(":(")

Submission status: Runtime Error

Solution code:
a, b = map(int, input())
print('Yay' if a <= 8 and b <= 8 else ':(')

Submission status: Runtime Error

Solution code:
print(
  "Yay!"
  if all(lambda x: x <= 8,      
         map(int, input().split())
        )
  else ":("
)

Submission status: Runtime Error

Solution code:
x=int(input())
y=int(input())
if x<9 and y<9:
  print("Yay!")
else:
  print(":(")

Submission status: Runtime Error

Solution code:
import math

# inputList=[]
# for i in range(6):
#     inputNum = input()
#     inputList.append(inputNum)
inputa = input().split()
# inputb = input().split()

# inputa = [int(n) for n in inputa]
# inputa.sort()

# inputa = list(inputa[0])

a = int(inputa[0])
# b = int(inputa[1])
# c = int(inputa[2])

# x = int(inputb[0])
# y = int(inputb[1])

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

Submission status: Runtime Error

Solution code:
a,b = int(input().split())

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

Submission status: Runtime Error

Solution code:
a,b = int(input().split())

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

Submission status: Runtime Error

Solution code:
#100

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

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)

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

Submission status: Runtime Error

Solution code:
a,b = int(input().split())
if (a+b<16 or a==b):
    print("Yay!")
else:
    print(":(")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = map(int,input())
if max([a,b]) >= 9:
  print(':(')
else:
  print('Yay!')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b = raw_input()
return 'Yay!' if a <= 8 and b <= 8 else ':('

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
a=max(list(map(int,input().split()));print(':('if a>8 else'Yay!')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
ｈｈｈ

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
input_a = int(input())
input_b = int(input())

input_total = input_a + input_b

if input_total > 16:
  print(":(")
elif input_a > 8:
  print(":(")
elif input_b > 8:
  print(":(")
else:
  print("Yay!")

Submission status: Runtime Error

Solution code:
input_a = int(input())
input_b = int(input())

if input_a <= 8 & input_b <= 8:
  print("Yay!")
else:
  print(":(")

Submission status: Runtime Error

Solution code:
a, b = map(int, raw_input())

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

Submission status: Runtime Error

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

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

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

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

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

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


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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b = int(intput())
if a <= 8 and b <= 8:
    print('Yay!')
else:
    print(':(')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=int(input())
print(":("if a>8 or b>8 else "Yay!")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
if(a>8 or b>8):
    print (":(")
else:
    print("Yay!")

Submission status: Runtime Error

Solution code:
A,B = map(int , input().split())

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

Submission status: Runtime Error

Solution code:
A,B = [int(i) for i in input().split()]
if A <= 8:
    print('Yay!')
    if B <= 8:
        print('Yay!')
    elif:
        print(':(')
else:
    print(':(')

Submission status: Runtime Error

Solution code:
A,B = [int(i) for i in input().split()]
if A <＝ 8:
    print('Yay!')
elif B <＝ 8:
    print('Yay!')
else:
    print(':(')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n, m = map(int, input().split())
data = [[int(x) for x in input().split()] for _ in range(n)]

pats = [(x,y,z) for x in [-1,1] for y in [-1,1] for z in [-1,1]] # +++,++-,...,---
score = lambda sgns, vals: sum([s * x for(s, x) in zip(sgns, vals)])  # i.e.x+y-z
result = max(sum(sorted(score(pat, row) for row in data)[-m:]) for pat in pats)
print(result)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())

if a<9&&b<9:
	print('Yay!')
else:
    print(':(')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
i = list(map(int, input().split()))
A = i[0]
B = i[1]

if(A - B > 1 || B - A > 1):
  print(':(')

if((A - B) == 0 || (A - B) == 1 || (B - A) == 0 || (B - A) == 1):
  print('Yay!')

Submission status: Runtime Error

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