ZhenlongDai/ACPR huggingface dataset:
Problem: p03733
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import itertools
n, t = map(int,input().split())
tl = list(map(int,input().split()))

water = 0
for i in range(n):
    if tl[i] <= t:
        water += tl[i]
    else:
        water += t
water += t
print(water)

Failing test case input:
9 10
0 3 6 5 100 110 268 272 311

Expected output:
59


Actual output:
74


Fixed submission (verdict: Accepted):
import itertools
n, t = map(int,input().split())
tl = list(map(int,input().split()))

water = 0
for i in range(1,n):
    diff = tl[i]-tl[i-1]
    if diff <= t:
        water += diff
    else:
        water += t
water += t
print(water)

Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, T=map(int, input().split())
a=list(map(int, input().split()))

ans=T

for i in range(N-1):
    space=a[i+1]-a[i]
    if space>=T:
        ans+=T
    else:
        loss=T-space
        ans+=T-loss


Failing test case input:
4 1000000000
0 1000 1000000 0000000000

Expected output:
1000000000


Actual output:

Fixed submission (verdict: Accepted):
N, T=map(int, input().split())
a=list(map(int, input().split()))

ans=T

for i in range(N-1):
    space=a[i+1]-a[i]
    if space>=T:
        ans+=T
    else:
        loss=T-space
        ans+=T-loss

print(ans)

Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, t = map(int, input().split())
T = list(map(int, input().split())) + [10 ** 19]

ans = 0
for i in T:
  ans += min(t, i)
  
print(ans)

Failing test case input:
4 1011001000
0 0000 1100001 1000101000

Expected output:
2011102000


Actual output:
2012202001


Fixed submission (verdict: Accepted):
n, t = map(int, input().split())
T = list(map(int, input().split())) + [10 ** 19]

ans = 0
for t1, t2 in zip(T, T[1::]):
  if t2 - t1 < t:
    ans += t2 - t1
  else:
    ans += t
  
print(ans)

Problem: p03733
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N, T = map(int, input().split())
t = list(map(int, input().split()))
ans_t = T

for i in range(1, N):
    if t[i] <= ans_t:
        ans_t = ans_t - t[i - 1] + t[i]
    else:
        ans_t += T

print(ans_t)

Failing test case input:
9 10
0 3 6 5 100 110 268 272 311

Expected output:
59


Actual output:
65


Fixed submission (verdict: Accepted):
N, T = map(int, input().split())
t = list(map(int, input().split()))
ans_t = T

for i in range(1, N):
    if t[i] <= t[i - 1] + T:
        ans_t = ans_t - t[i - 1] + t[i]
    else:
        ans_t += T

print(ans_t)

Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,T = map(int,input().split())
t = list(map(int,input().split()))
cnt=0
ter=-1
for x in t:
  if(x>=ter):
    cnt+=1
    ter=x+T
print(cnt*T)


Failing test case input:
2 4
0 2

Expected output:
6


Actual output:
4


Fixed submission (verdict: Accepted):
N,T = map(int,input().split())
t = list(map(int,input().split()))
ans=0
ter=-1
for x in t:
  if(x>=ter):
    ans+=T
  else:
    ans+=T-(ter-x)
  ter=x+T

print(ans)
Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ans=0
n,k=map(int,input().split())
a=list(map(int,input().split()))
for i in range(n):
  ans+=min(a[i],k)
ans+=k
print(ans)

Failing test case input:
4 1000011000
0 1100 0101100 1100000000

Expected output:
2000123100


Actual output:
2000124200


Fixed submission (verdict: Accepted):
ans=0
n,k=map(int,input().split())
a=list(map(int,input().split()))
for i in range(1,n):
  ans+=min(a[i]-a[i-1],k)
ans+=k
print(ans)

Problem: p03733
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N, T = map(int, input().split())
time = list(map(int, input().split()))
syawaend = 0
ans = 0
for i in range(N):
  if syawaend <= time[i]:
    syawaend += T
    ans += T
  else:
    syawaend = time[i]+T
    ans += time[i]-time[i-1]
print(ans)


Failing test case input:
9 10
0 3 5 7 100 110 268 272 311

Expected output:
61


Actual output:
67


Fixed submission (verdict: Accepted):
N, T = map(int, input().split())
time = list(map(int, input().split()))
syawaend = 0
ans = 0
for i in range(N):
  if syawaend <= time[i]:
    syawaend = time[i]+T
    ans += T
  else:
    syawaend = time[i]+T
    ans += time[i]-time[i-1]
print(ans)

Problem: p03733
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, time = map(int, input().split())
T = list(map(int, input().split()))

cnt = 0
for t in T:
    if t <= cnt:
        cnt = t + time
    else:
        cnt += time

print(cnt)

Failing test case input:
9 10
0 3 6 5 100 110 373 272 311

Expected output:
-46


Actual output:
65


Fixed submission (verdict: Accepted):
n, time = map(int, input().split())
T = list(map(int, input().split()))

cnt = time
tmp = T[0]
for t in T[1:]:
    if t <= tmp + time:
        cnt += t - tmp
    else:
        cnt += time
    tmp = t

print(cnt)

Problem: p03733
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):



n,t=map(int,input().split())
a=[int(i) for i in input().split()]
ans=chk=0
for i in a:
    if chk<=i:
        ans=ans+t
        chk=chk+t
    else:
        
        ans=ans+((i+t)-chk)
        chk=chk+((i+t)-chk)

print(ans)

Failing test case input:
9 10
0 3 6 5 100 110 268 272 311

Expected output:
59


Actual output:
65


Fixed submission (verdict: Accepted):



n,t=map(int,input().split())
a=[int(i) for i in input().split()]
ans=chk=0
for i in a:
    if chk<=i:
        ans=ans+t
        chk=i+t
    else:
        ans=ans+((i+t)-chk)
        chk=chk+((i+t)-chk)

print(ans)

Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,T = map(int,input().split())
t = list(map(int,input().split()))
cnt=0
ter=0
for x in t:
  if(x<=ter):
    cnt+=1
    ter=x+T
print(cnt*T)

Failing test case input:
4 1000001000
0 1100 1011100 1000001000

Expected output:
2000002000


Actual output:
4000004000


Fixed submission (verdict: Accepted):
N,T = map(int,input().split())
t = list(map(int,input().split()))
ans=0
ter=-1
for x in t:
  if(x>=ter):
    ans+=T
  else:
    ans+=T-(ter-x)
  ter=x+T

print(ans)
Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, t = map(int,input().split())
time = list(map(int,input().split()))

ans = 0
wait = 0
for i in range(n):
    if i == 0:
        ans += t
        wait += t
    if wait <= time[i]:
        ans += t
        wait += t
    else:
        c = (wait - time[i])
        ans -= c
        ans += t
        wait = time[i] + t

print(ans)

Failing test case input:
9 10
0 3 6 5 100 110 373 272 311

Expected output:
-46


Actual output:
65


Fixed submission (verdict: Accepted):
n, t = map(int,input().split())
time = list(map(int,input().split()))

ans = 0
wait = 0
for i in range(n):
    if i == 0:
        ans += t
        wait += t
    if wait <= time[i]:
        ans += t
        wait = time[i] + t
    else:
        c = (wait - time[i])
        ans -= c
        ans += t
        wait = time[i] + t

print(ans)

Problem: p03733
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, tx = map(int, input().split())
t = list(map(int, input().split()))
ans = 0
for i in range(n-1):
    if t[i+1] <= tx:
        ans += t[i+1]
    else:
        ans += tx
print(ans+tx)

Failing test case input:
9 10
0 3 6 5 100 110 268 272 311

Expected output:
59


Actual output:
74


Fixed submission (verdict: Accepted):
n, t = map(int, input().split())
l = list(map(int, input().split()))
ans = 0
for i in range(n-1):
    ans += min(l[i+1]-l[i], t)
print(ans+t)

Problem: p03733
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N, T = map(int,input().split())
t = list(map(int,input().split()))
t.append(T)

ans = 0
for n in range(N):
  ans += min(t[n+1]-t[n],T)
print(ans)

Failing test case input:
4 1000011000
0 1100 0101100 1100000000

Expected output:
2000123100


Actual output:
900123100


Fixed submission (verdict: Accepted):
N, T = map(int,input().split())
t = list(map(int,input().split()))
t.append(t[-1]+T)


ans = 0
for n in range(N):
  ans = ans + min(t[n+1]-t[n],T)
  
print(ans)

Problem: p03733
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N,T = map(int,input().split());
t = [int(x) for x in input().split()];

end = 0;
ans = 0;
for i in range(N) :
    if end > t[i] :
        ans += t[i] + T - end;
        end = t[i] + T;
    else :
        ans += T;
        end += T;
    

print(ans); 

Failing test case input:
9 14
0 3 5 7 100 110 200 300 311

Expected output:
84


Actual output:
91


Fixed submission (verdict: Accepted):
N,T = map(int,input().split());
t = [int(x) for x in input().split()];

end = 0;
ans = 0;
for i in range(N) :
    if end > t[i] :
        ans += t[i] + T - end;
    else :
        ans += T;
    end = t[i] + T;
    

print(ans);
Problem: p03733
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, time = map(int, input().split())
T = list(map(int, input().split()))

cnt = time
tmp = T[0]
for t in T[1:]:
    if t <= time + time:
        cnt += t - tmp
    else:
        cnt += time
    tmp = t

print(cnt)

Failing test case input:
9 14
0 3 5 7 100 110 200 300 311

Expected output:
84


Actual output:
91


Fixed submission (verdict: Accepted):
n, time = map(int, input().split())
T = list(map(int, input().split()))

cnt = time
tmp = T[0]
for t in T[1:]:
    if t <= tmp + time:
        cnt += t - tmp
    else:
        cnt += time
    tmp = t

print(cnt)

Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
while True:
	try:
		ins = input().split(" ")
		N = int(ins[0])
		T = int(ins[1])
		a = []
		inx = input().split(" ")
		for i in range(0, N):
			a.append(int(inx[i]))
		ans = T
		for x in range(1, N):
			if a[x]+T > ans:
				ans = a[x] + T
		print(ans)
	except:
		break

Failing test case input:
4 0000100001
0 0100 1000000 1010000000

Expected output:
300103


Actual output:
1010100001


Fixed submission (verdict: Accepted):
while True:
	try:
		ins = input().split(" ")
		N = int(ins[0])
		T = int(ins[1])
		a = []
		inx = input().split(" ")
		for i in range(0, N):
			a.append(int(inx[i]))
		ans = 0
		end = 0
		for x in range(0, N):
			if a[x] < end:
				 ans = ans + a[x] + T - end
				 end = a[x] + T
			elif a[x] > end:
				ans += T
				end = a[x] + T
			else:
				ans += T
				end += T
		print(ans)
	except:
		break

Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, T = map(int, input().split())
t = list(map(int, input().split()))

sum_second = 0
for i in range(N):
    if (i == N - 1):
        sum_second += T
        break

    if T > t[i + 1] - sum_second:
        sum_second += t[i + 1] - sum_second
    elif (T <= t[i + 1] - sum_second):
        sum_second += T


print(sum_second)


Failing test case input:
9 10
0 3 5 7 100 010 200 300 394

Expected output:
-33


Actual output:
50


Fixed submission (verdict: Accepted):
N, T = map(int, input().split())
t = list(map(int, input().split()))

sum_second = 0
for i in range(N):
    if (i == N - 1):
        sum_second += T
        break

    if (t[i + 1] - t[i] <= T):
        sum_second += t[i + 1] - t[i]
    else:
        sum_second += T

    
    
    
    


print(sum_second)
Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from math import factorial
from sys import exit, stdin
N, T = [int(_) for _ in stdin.readline().rstrip().split()]
t_list = [int(_) for _ in stdin.readline().rstrip().split()]
ans = 0
for i in range(N):
    if t_list[i] > T:
        ans = T+t_list[i-1]+T*len(t_list[i:])
        print(ans)
        exit()
ans = t_list[-1]+T
print(ans)

Failing test case input:
9 14
0 3 5 7 100 110 200 300 311

Expected output:
84


Actual output:
91


Fixed submission (verdict: Accepted):
from math import factorial
from sys import exit, stdin
N, T = [int(_) for _ in stdin.readline().rstrip().split()]
t_list = [int(_) for _ in stdin.readline().rstrip().split()]
ans = 0
for i in range(N-1):
    if t_list[i+1] - t_list[i] > T:
        ans += T
    else:
        ans += t_list[i+1] - t_list[i]
ans += T
print(ans)

Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, T = map(int, input().split())
t = list(map(int, input().split()))

ans = 0
for i in range(N):
    if i == N - 1:
        ans += T
    else:
        ans += min(T, t[i + 1])
print(ans)


Failing test case input:
4 1000000000
0 1100 1000000 1000000000

Expected output:
2000000000


Actual output:
2001001100


Fixed submission (verdict: Accepted):
N, T = map(int, input().split())
t = list(map(int, input().split()))

ans = T
for i in range(N - 1):
    ans += min(T, t[i + 1] - t[i])
print(ans)

Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):








n, t = map(int, input().split())
tl = list(map(int, input().split()))

et = t      
tsum = t

for i in range(1, n):
    if tl[i] >= et:
        tsum += t
    else:
        tsum += tl[i] - tl[i - 1]
        et = tl[i] + t


print(tsum)


Failing test case input:
9 10
0 3 6 5 100 110 268 272 311

Expected output:
59


Actual output:
65


Fixed submission (verdict: Accepted):








n, t = map(int, input().split())
tl = list(map(int, input().split()))

et = t      
tsum = t

for i in range(1, n):
    if tl[i] >= et:
        tsum += t
    else:
        tsum += tl[i] - tl[i - 1]
    et = tl[i] + t


print(tsum)

Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, T = map(int, input().split())
ts = list(map(int, input().split()))

ans = T
current = T
for t in ts[1:]:
    if t < ans:
        ans += T + t - current
        current = t + T
    else:
        ans += T
        current = t + T
print(ans)

Failing test case input:
9 10
0 3 6 5 100 110 268 272 311

Expected output:
59


Actual output:
65


Fixed submission (verdict: Accepted):
N, T = map(int, input().split())
ts = list(map(int, input().split()))

ans = T
current = T
for t in ts[1:]:
    if t < current:
        ans += T + t - current
        current = t + T
    else:
        ans += T
        current = t + T
print(ans)
Problem: p03733
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n, t = map(int, input().split())
l = list(map(int, input().split()))

ans = 0
for i in l:
    if ans > i:
        ans -= ans - i
    ans += t

print(ans)

Failing test case input:
9 10
0 3 6 5 100 110 268 272 311

Expected output:
59


Actual output:
65


Fixed submission (verdict: Accepted):
n, t = map(int, input().split())
l = list(map(int, input().split()))

ans = 0
for i in range(n-1):
    ans += min(t, l[i+1] - l[i])
ans += t

print(ans)

Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, T = map(int, input().split())
t = list(map(int, input().split()))

ans = 0
for i in range(1,N):
  ans += min(T, t[i] - t[i-1])

print(ans)

Failing test case input:
4 0000100001
0 1101 1000000 1010000000

Expected output:
301104


Actual output:
201103


Fixed submission (verdict: Accepted):
N, T = map(int, input().split())
t = list(map(int, input().split()))

ans = T
for i in range(1,N):
  ans += min(T, t[i] - t[i-1])

print(ans)

Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,t=map(int,input().split())
a=list(map(int,input().split()))
ans=0
for i in range(n-1):
  if a[i+1]-a[i]>=t:
    ans+=4
  else:
    ans+=(a[i+1]-a[i])
print(ans+t)

Failing test case input:
9 10
0 3 6 5 100 110 373 272 311

Expected output:
-46


Actual output:
-70


Fixed submission (verdict: Accepted):
n,t=map(int,input().split())
a=list(map(int,input().split()))
ans=0
for i in range(n-1):
  if a[i+1]-a[i]>=t:
    ans+=t
  else:
    ans+=(a[i+1]-a[i])
print(ans+t)

Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,T = map(int,input().split())

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

OYUSUM = 0
OYU = T
now = P[0]
for t in P[1:]:
    if t-now<T:
        OYU = T+t
        now = t
    else:
        OYUSUM += OYU
        OYU = T
        now = t
    
OYUSUM+=OYU
    
print(OYUSUM)

Failing test case input:
9 10
0 3 5 7 100 010 200 300 394

Expected output:
-33


Actual output:
67


Fixed submission (verdict: Accepted):
N,T = map(int,input().split())

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

OYUSUM = 0
now = P[0]
for t in P[1:]:
    if t-now<T:
        OYUSUM+=t-now
        now = t
    else:
        OYUSUM+=T
        now = t
    
OYUSUM+=T
    
print(OYUSUM)

Problem: p03733
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, T = map(int, input().split())
t = list(map(int, input().split()))
count = 0
for i in range(1, N):
    if t[i] > T and t[i-1] < T:
        count += t[i-1] + T
    elif t[i] >= T:
        count += T
    if t[i] < T and i == N-1:
        count += t[i]
print(count+T)

Failing test case input:
9 10
0 3 6 5 100 110 268 272 311

Expected output:
59


Actual output:
65


Fixed submission (verdict: Accepted):
N, T = map(int, input().split())
t = list(map(int, input().split()))
count = 0
for i in range(1, N):
    m = t[i]-t[i-1]
    if m < T:
        count += m
    else:
        count += T
print(count+T)
Problem: p03733
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, time = map(int, input().split())
T = list(map(int, input().split()))

cnt = 0
for t in T:
    if t < cnt:
        cnt = t + time
    else:
        cnt += time

print(cnt)

Failing test case input:
9 10
0 3 6 3 100 110 373 272 562

Expected output:
-48


Actual output:
63


Fixed submission (verdict: Accepted):
n, time = map(int, input().split())
T = list(map(int, input().split()))

cnt = time
tmp = T[0]
for t in T[1:]:
    if t <= tmp + time:
        cnt += t - tmp
    else:
        cnt += time
    tmp = t

print(cnt)
Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


def solve(A, B):
    if A > 8: return ":("
    if B > 8: return ":("
    return "Yay!"

if __name__ == "__main__":

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

Failing test case input:
18 8

Expected output:
:(


Actual output:
18 8


Fixed submission (verdict: Accepted):


def solve(A, B):
    if A > 8: return ":("
    if B > 8: return ":("
    return "Yay!"

if __name__ == "__main__":

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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if A+B <= 16:
    print("Yay!")
else:
    print(":(")

Failing test case input:
-6 20

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if A+B <= 16 and A<=8 and B<=8:
    print("Yay!")
else:
    print(":(")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A , B= map(int,input().split())
if A < 8 and B < 8:
	print('Yes')
else:
	print('No')


Failing test case input:
-6 20

Expected output:
:(


Actual output:
No


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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(":(")

Failing test case input:
-2 40

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
A,B = map(int, input().split())

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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a >= 8 and b >= 8:
    print('Yay!')
else:
    print(':(')


Failing test case input:
18 8

Expected output:
:(


Actual output:
Yay!


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


import math
from collections import defaultdict

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

ans = 'Yay!'

if a > 8 or b > 8:
    ans = ':)'

print(ans)

Failing test case input:
21 1

Expected output:
:(


Actual output:
:)


Fixed submission (verdict: Accepted):


import math
from collections import defaultdict

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

ans = 'Yay!'

if a > 8 or b > 8:
    ans = ':('

print(ans)

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys 
import math

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

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


Failing test case input:
-1 34

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
import sys 
import math

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

if a<=8 and b<=8:
    print("Yay!")
else:
    print(":(")
Problem: p03323
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=input().split()
a=int(a)
b=int(b)
if a<=8:
  if b<=8:
    print("Yay!")
else:
  print(":(")

Failing test case input:
-1 34

Expected output:
:(


Actual output:

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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a>8 or b>8:
  print("Yay!")
else:
  print(":(")

Failing test case input:
-6 20

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a>8 or b>8:
  print(":(")
else:
  print("Yay!")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b =map(int,input().split())
if a<=8 or b<=8:
  print("Yay!")
else:
  print(":(")



Failing test case input:
30 0

Expected output:
:(


Actual output:
Yay!


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

Problem: p03323
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
inp = input().split()

a = int(inp[0])
b = int(inp[1])

if a>8 and b>8:
    print(':(')

else:
    print('Yay!')


Failing test case input:
-6 20

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
inp = input().split()

a = int(inp[0])
b = int(inp[1])

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

else:
    print('Yay!')

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    A, B = map(int, input().split())
    if A <= 8 and B <= 8:
        print("Yay!")
    else:
        print("*:(")
if __name__ == "__main__":
    main()

Failing test case input:
-1 34

Expected output:
:(


Actual output:
*:(


Fixed submission (verdict: Accepted):
def main():
    A, B = map(int, input().split())
    if A > 8 or B > 8:
        print(":(")
    else:
        print("Yay!")
if __name__ == "__main__":
    main()

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if min(A, B) <= 8:
  print("Yay!")
else:
  print(":(")

Failing test case input:
18 8

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if max(A, B) <= 8:
  print("Yay!")
else:
  print(":(")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = [int(x) for x in input().split()]

big = max((a,b))
small = min((a,b))

if((16-small) >= (big-small)*2):
    print("Yay!")
else:
    print(":(")

Failing test case input:
11 6

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a,b = [int(x) for x in input().split()]

big = max((a,b))
small = min((a,b))


last = 16 - small*2
if(last % 2 == 1):
    last += 1

if(last >= (big-small)*2):
    print("Yay!")
else:
    print(":(")
Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A<=8 or B<=8:
    print('Yay!')
if A>8 or B>8:
    print(':(')

Failing test case input:
-6 20

Expected output:
:(


Actual output:
Yay!
:(


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

else:
    print(':(')

Problem: p03323
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
A,B = map(int,input().split())

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

Failing test case input:
0 18

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())

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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())

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


Failing test case input:
0 18

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())

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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ui = input()
D, N = int(ui.split()[0]), int(ui.split()[1])
if D > 8 and N > 8:
    print(':(')
else:
    print('Yay!')


Failing test case input:
21 1

Expected output:
:(


Actual output:
Yay!


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = (int(i) for i in input().split())
if a <= 8 and b <= 8:
  print('Yes')
else:
  print('No')

Failing test case input:
-4 26

Expected output:
:(


Actual output:
No


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a>9 and b>9:
  print(":(")
else:
  print("yay!")

Failing test case input:
-4 40

Expected output:
:(


Actual output:
yay!


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())

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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())

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

Failing test case input:
-2 54

Expected output:
:(


Actual output:
Yay


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
maximum = 8

if a+b <= 16 and a <= maximum and b <= maximum:
    print("Yay!")
else:
    print(":(")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if A >8:
  print(":(")
if B >8:
  print(":(")
else:
  print("Yay!")

Failing test case input:
11 6

Expected output:
:(


Actual output:
:(
Yay!


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if A <=8 and B<=8:
  print("Yay!")
else:
  print(":(")
Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())

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

Failing test case input:
0 18

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())

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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":)")

Failing test case input:
-1 34

Expected output:
:(


Actual output:
:)


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = [int(s) for s in input().split()]

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

Failing test case input:
-6 26

Expected output:
:(


Actual output:
:)


Fixed submission (verdict: Accepted):
A,B = [int(s) for s in input().split()]
 
print('Yay!') if A <= 8 and B <= 8 else print(':(')

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int, input().split())
print('Yay!' if (A,B) <= (8,8) else ':(')

Failing test case input:
-6 20

Expected output:
:(


Actual output:
Yay!


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

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

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

Failing test case input:
18 8

Expected output:
:(


Actual output:
:()


Fixed submission (verdict: Accepted):

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

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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if min(a, b) > 8:
    print(':(')
else:
    print('Yay!')

Failing test case input:
-6 26

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if max(a, b) > 8:
    print(':(')
else:
    print('Yay!')

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if 8 >= max(map(int, input().split())):
    print("Yay!")
else:
    print("(:")

Failing test case input:
30 0

Expected output:
:(


Actual output:
(:


Fixed submission (verdict: Accepted):
if 8 >= max(map(int, input().split())):
    print("Yay!")
else:
    print(":(")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a or b >= 8:
    print('Yay!')
else:
    print(':(')

Failing test case input:
-4 47

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if (a <= 8 and b <= 8):
    print('Yay!')
else:
    print(':(')
Problem: p03323
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B=map(int,input().split())
if A+B<=14:
  print("Yay!")
else:
  print(":(")

Failing test case input:
-6 20

Expected output:
:(


Actual output:
Yay!


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())

if a+b <= 16:
    print("Yay!")
else:
    print(":(")


Failing test case input:
11 5

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())

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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())

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

Failing test case input:
0 31

Expected output:
:(


Actual output:
:)


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())

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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())

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

Failing test case input:
0 18

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())

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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

ab_list = input().split()
A_cake = int(ab_list[0])
B_cake = int(ab_list[1])

if (not 1<= A_cake <=16) or (not 1<= B_cake <=16) or (A_cake + B_cake > 16):
    
    print(":)")
    
    
    exit()


Acnt = A_cake
Bcnt = B_cake

for i in range(16):
    if Acnt <= 0:
        Bcnt -= 1
        continue
    elif Bcnt <= 0:
        Acnt -= 1
        continue
    elif i % 2 == 0:
        Acnt -= 1
        continue
    else:
        Bcnt -= 1
        continue

if Acnt <= 0 and Bcnt <= 0:
    print("Yay!")
else:
    print(":)")
    print(Acnt)
    print(Bcnt)




Failing test case input:
0 31

Expected output:
:(


Actual output:
:)


Fixed submission (verdict: Accepted):

ab_list = input().split()
A_cake = int(ab_list[0])
B_cake = int(ab_list[1])

if (not 1<= A_cake <=16) or (not 1<= B_cake <=16) or (A_cake + B_cake > 16):
    
    print(":(")
    
    
    exit()


Acnt = A_cake
Bcnt = B_cake

for i in range(16):
    if i % 2 == 0:
        Acnt -= 1
    else:
        Bcnt -= 1

if Acnt <= 0 and Bcnt <= 0:
    print("Yay!")
else:
    print(":(")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = [int(i) for i in input().split()]
if A <= 8:
    print('Yay!')
elif B <= 8:
    print('Yay!')
else:
    print(':(')

Failing test case input:
-2 54

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
A,B = [int(i) for i in input().split()]
if A > 8:
    print(':(')
elif B > 8:
    print(':(')
else:
    print('Yay!')
Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())

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

Failing test case input:
-4 26

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())

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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] 
list1_1 = list1[1] 

if list1_0 < 8:
    print("Yay!")
elif list1_1 < 8:
    print("Yay!")
else:
    print(":(")

Failing test case input:
0 31

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] 
list1_1 = list1[1] 

if list1_0 > 8 or list1_1 > 8:
    print(":(")
else:
    print("Yay!")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n_str = input()
a_str, b_str = n_str.split()
a = int(a_str)
b = int(b_str)

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

Failing test case input:
30 0

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
n_str = input()
a_str, b_str = n_str.split()
a = int(a_str)
b = int(b_str)

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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a > 8 or b > 8:
  print("No")
else:
  print("Yes")

Failing test case input:
-1 31

Expected output:
:(


Actual output:
No


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a > 8 or b > 8:
  print(":(")
else:
  print("Yay!")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if A <= 8 & B <= 8:
  print("Yay!")
else:
  print(":(")


Failing test case input:
0 18

Expected output:
:(


Actual output:
Yay!


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())

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

Failing test case input:
-6 40

Expected output:
:(


Actual output:
Yay!


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())

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


Failing test case input:
-6 26

Expected output:
:(


Actual output:
: (


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())

if A <= 8 and B <= 8:
    print('Yay!')
else:
    print(':(')
Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if (A or B) >= 9:
  print(":(")
else:
  print("Yay!")

Failing test case input:
-6 40

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if A >= 9:
    print(":(")
elif B >= 9:
    print(":(")
else:
    print("Yay!")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):



import calendar as cal

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

if a >= b:
    l = a
    s = b
else:
    l = b
    s = a

d = l - s

e = 16 - s

if e/2 >= d:
    print("Yay!")
else:
    print(":(")


Failing test case input:
11 6

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):



import calendar as cal

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

if a >= b:
    l = a
    s = b
else:
    l = b
    s = a

d = l - s

e = 16 - s*2

if e/2 >= d:
    print("Yay!")
else:
    print(":(")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=input().split()
a=int(a)
b=int(b)

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

Failing test case input:
-6 40

Expected output:
:(


Actual output:
:)


Fixed submission (verdict: Accepted):
a,b=input().split()
a=int(a)
b=int(b)

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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if max(A,B)<=8 :
    print("Yay!")
else :
    print(":()")


Failing test case input:
-1 31

Expected output:
:(


Actual output:
:()


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if max(A,B)<=8 :
    print("Yay!")
else :
    print(":(")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())

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

Failing test case input:
-4 47

Expected output:
:(


Actual output:
Yay!


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] 
list1_1 = list1[1] 

if list1_0 < 8:
    print("Yay!")
if list1_1 < 8:
    print("Yay!")
else:
    print(":(")

Failing test case input:
-2 54

Expected output:
:(


Actual output:
Yay!
:(


Fixed submission (verdict: Accepted):
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] 
list1_1 = list1[1] 

if list1_0 > 8 or list1_1 > 8:
    print(":(")
else:
    print("Yay!")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if A > 8 or B > 8:
  print("Yay")
else:
  print(":(")

Failing test case input:
-4 26

Expected output:
:(


Actual output:
Yay


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())
if A > 8 or B > 8:
  print(":(")
else:
  print("Yay!")
Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] 
list1_1 = list1[1] 

if list1_0 < 8 or list1_1 < 8:
    print(":(")
else:
    print("Yay!")

Failing test case input:
18 8

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] 
list1_1 = list1[1] 

if list1_0 > 8 or list1_1 > 8:
    print(":(")
else:
    print("Yay!")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
a, _ = input().split(' ')
print(':(' if int(a) > 8 else 'Yay!')

Failing test case input:
-2 54

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
import sys
a, b = input().split(' ')
print(':(' if int(a) > 8 or int(b) > 8 else 'Yay!')

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a<8 or  b<8:
    print(":(")
else:
    print("Yay!")

Failing test case input:
18 8

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a>8 or  b>8:
    print(":(")
else:
    print("Yay!")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())

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

Failing test case input:
11 5

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
maximum = 8

if a+b <= 16 and a <= maximum and b <= maximum:
    print("Yay!")
else:
    print(":(")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l=list(map(int,input().split()))
print(l)
if(all(l[x] <= 8 for x in range(len(l)) )):
  print('Yay!')
else:print(':(')

Failing test case input:
0 31

Expected output:
:(


Actual output:
[0, 31]
:(


Fixed submission (verdict: Accepted):
l=list(map(int,input().split()))

if(all(l[x] <= 8 for x in range(len(l)) )):
  print('Yay!')
else:print(':(')

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())

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

else:
    print(":)")

Failing test case input:
-4 26

Expected output:
:(


Actual output:
:)


Fixed submission (verdict: Accepted):
A, B = map(int, input().split())

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

else:
    print(":(")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B = map(int,input().split())
if A <= 8 and B <= 8:
    print("Yes")
else:
    print("No")

Failing test case input:
-1 47

Expected output:
:(


Actual output:
No


Fixed submission (verdict: Accepted):
A,B = map(int,input().split())
if A <= 8 and B <= 8:
    print("Yay!")
else:
    print(":(")
Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    A, B = map(int, input().split())
    if A > 8 or B > 8:
        print("*:(")
    else:
        print("Yay!")
if __name__ == "__main__":
    main()

Failing test case input:
-1 34

Expected output:
:(


Actual output:
*:(


Fixed submission (verdict: Accepted):
def main():
    A, B = map(int, input().split())
    if A > 8 or B > 8:
        print(":(")
    else:
        print("Yay!")
if __name__ == "__main__":
    main()

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print("Yay!" if a<9 and a<9 else ":(")

Failing test case input:
-4 40

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print("Yay!" if a<9 and b<9 else ":(")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B=map(int,input().split())
if A>8 or B>8:
    print("Yay!")
else:
    print(":(")        








Failing test case input:
-4 40

Expected output:
:(


Actual output:
Yay!


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
print(A)
if (A < 9) and (B < 9):
    print("Yay!")
else:
    print(":(")


Failing test case input:
-6 40

Expected output:
:(


Actual output:
-6
:(


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a<=8 and a<=8:
    print('Yay!')
else:
    print(':(')

Failing test case input:
0 31

Expected output:
:(


Actual output:
Yay!


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=input().split()
a=int(a)
b=int(b)

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

Failing test case input:
-1 47

Expected output:
:(


Actual output:
Yay


Fixed submission (verdict: Accepted):
a,b=input().split()
a=int(a)
b=int(b)

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

Problem: p03323
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B=input().split()
if int(A)<=8 or int(B)<=8:
  print("Yay!")
else:
  print( ":(")

Failing test case input:
-4 47

Expected output:
:(


Actual output:
Yay!


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = list(map(int, input().rstrip().split()))
if b + 1 >= a:
    print("Yay!")
else:
    print(":(")

Failing test case input:
0 31

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
a, b = list(map(int, input().rstrip().split()))
if a<= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")
Problem: p03323
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b = map(int,input().split())
print("Yay!"if a*b<=64 else ':(')

Failing test case input:
11 5

Expected output:
:(


Actual output:
Yay!


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] 
list1_1 = list1[1] 

if list1_0 < 8 or list1_1 < 8:
    print("Yay!")
else:
    print(":(")

Failing test case input:
-4 40

Expected output:
:(


Actual output:
Yay!


Fixed submission (verdict: Accepted):
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] 
list1_1 = list1[1] 

if list1_0 > 8 or list1_1 > 8:
    print(":(")
else:
    print("Yay!")

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = map(int, input().split())
if A <= 8 & A <= 8:
    print("Yay!")
else:
    print(":(")

Failing test case input:
-4 47

Expected output:
:(


Actual output:
Yay!


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys


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



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

Failing test case input:
18 8

Expected output:
:(


Actual output:
:c


Fixed submission (verdict: Accepted):
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()

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = list(map(int, input().split()))
if a+b<=14:
  print('Yay!')
elif a==8 and b==8:
  print('Yay!')
else:
  print(':(')

Failing test case input:
-6 20

Expected output:
:(


Actual output:
Yay!


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

Problem: p03323
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a<=8:
    print("Yay!")
else:
    print(":(")

Failing test case input:
0 18

Expected output:
:(


Actual output:
Yay!


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