Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
n, m = map(int, input().split())
a = [[0] * m] for i in range(n)]
b = [0] * m
c = [0] * n

for i in range(n):
    w = list(map(int, input().split()))
    for j in range(m):
        a[i][j] = w[j]

for j in range(m):
    b[j] = int(input())

for i in range(n):
    for j in range(m):
        c[i] += a[i][j] * b[j]

for i in range(n):
    print(c[i])

Fixed submission:
n, m = map(int, input().split())
a = [[0] * m for i in range(n)]
b = [0] * m
c = [0] * n
# read matrix A
for i in range(n):
    w = list(map(int, input().split()))
    for j in range(m):
        a[i][j] = w[j]
# read vevtor b
for j in range(m):
    b[j] = int(input())
# Ab -> c
for i in range(n):
    for j in range(m):
        c[i] += a[i][j] * b[j]
# output c
for i in range(n):
    print(c[i])
Buggy python submission (verdict: Runtime Error):
from math import pi

r = int(input())
print(pi*r**2, 2*pi*r)



Fixed submission:
from math import pi

r = float(input())
print(pi*r**2, 2*pi*r)
Buggy python submission (verdict: Runtime Error):
input = '5 4 2 2 1'#W,H,x,y,r
w, h, x, y, r = input1.split()

top = y + r
bottom = y - r
left = x - r
right = x + r

if h >= top and bottom >= and right >= top and left >= 0:
    print('Yes')
else:
    print('No')


Fixed submission:
w, h, x, y, r = [int(i) for i in input().split(' ')]

top = y + r
bottom = y - r
left = x - r
right = x + r

if h >= top and bottom >= 0 and w >= right and left >= 0:
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            if (h + w) % 2 == 0:
                print('#', end='')
            else:
                print('.', end='')

        print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            if (h + w) % 2 == 0:
                print('#', end='')
            else:
                print('.', end='')

        print()
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            if(h + w) % 2 == 0:
                print('#', end='')
            else:
                print('.', end='')

        print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            if (h + w) % 2 == 0:
                print('#', end='')
            else:
                print('.', end='')

        print()
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            if (H + W) % 2 == 0:
                print('#', end='')
            else:
                print('.', end='')

        print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            if (h + w) % 2 == 0:
                print('#', end='')
            else:
                print('.', end='')

        print()
    print()
Buggy python submission (verdict: Runtime Error):
while True:
    m, f, r = [int(i) for i in input().split()]

    if m == f == r == -1:
        break

    elif m or f == -1:
        print('F')

    elif m + f >= 80:
        print('A')

    elif m + f >= 65 < 79:
        print('B')

    elif m + f >= 50 < 64:
        print('C')

    elif m + f >= 30 < 49:
        print('D')

    elif m + f >= 50 < 49:
        r >= 50:
        print('C')
    
    else:
        print('F')

Fixed submission:
while True:
    m, f, r = [int(i) for i in input().split()]

    if m == f == r == -1:
        break

    total = m + f
    if m == -1 or f == -1 or total < 30:
        print('F')

    elif total < 50 and r < 50:
        print('D')

    elif total < 65:
        print('C')
        
    elif total < 80:
        print('B')
        
    else:
        print('A')

Buggy python submission (verdict: Runtime Error):
while True:
    m, f, r = [int(i) for i in input().split()]

    if m == f == r == -1:
        break

    elif m or f == -1:
        print('F')

    elif m + f >= 80:
        print('A')

    elif m + f >= 65 < 79:
        print('B')

    elif m + f >= 50 < 64:
        print('C')

    elif m + f >= 30 < 49:
        print('D')

    elif m + f >= 50 < 49:
        r >= 50:
        print('C')
    
    elif m + f < 30:
        print('F')

Fixed submission:
while True:
    m, f, r = [int(i) for i in input().split()]

    if m == f == r == -1:
        break

    total = m + f
    if m == -1 or f == -1 or total < 30:
        print('F')

    elif total < 50 and r < 50:
        print('D')

    elif total < 65:
        print('C')
        
    elif total < 80:
        print('B')
        
    else:
        print('A')
Buggy python submission (verdict: Runtime Error):
r, c = [int(i) for i in input().split()]

data = []

for ri in range(r):
    data[ri].append([int(i) for i in input().split()])
    data[ri].append(sum(data[ri]))

from pprint import pprint
pprint(data)

Fixed submission:
r, c = [int(i) for i in input().split()]

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data.append([int(i) for i in input().split()])
    data[ri].append(sum(data[ri]))
    print(" ".join([str(d) for d in data[ri]]))
    for ci in range(c + 1):
        sum_row[ci] += data[ri][ci]
        
print(" ".join([str(s) for s in sum_row]))

Buggy python submission (verdict: Runtime Error):
r, c = [int(i) for i in input().split()]

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data[ri].append([int(i) for i in input().split()])
    data[ri].append(sum(data[ri]))
    print(" ".join([str(d) for d in data[ri]]))
    for ci in range(c + 1):
        sum_row[ci] += data[ri][ci]
    

from pprint import pprint
pprint(data)
pprint(sum_row)

Fixed submission:
r, c = [int(i) for i in input().split()]

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data.append([int(i) for i in input().split()])
    data[ri].append(sum(data[ri]))
    print(" ".join([str(d) for d in data[ri]]))
    for ci in range(c + 1):
        sum_row[ci] += data[ri][ci]
        
print(" ".join([str(s) for s in sum_row]))
Buggy python submission (verdict: Runtime Error):
ATK = input()

for i in range(len(ATK)):
   if "a" <=ATK[i]<="z":
       print(ATK[i].upper, end='')

    elif "A"<=ATK[i]<="Z":
        print(ATK[i].lower, end='')

    else:
        print(ATK[i], end='')

Fixed submission:
print(input().swapcase())
Buggy python submission (verdict: Runtime Error):
import string
count = {x: 0 for x in string.ascii_lowercase}

s = input().lower()

for c in s:
    if 'a' <= c <= 'z':
        count[c] += 1
        
for key, num in count:
    print("{0} : {1}".format(key, num))

Fixed submission:
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ''

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))
Buggy python submission (verdict: Runtime Error):
W = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT'
        break
        
    for s in line.split():
        if s == W:
            count += 1
        
print(count)

Fixed submission:
W = input().lower()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.lower().split():
        if s == W:
            count += 1

print(count)

Buggy python submission (verdict: Runtime Error):
W = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT'
        break

    for s in line.lower().split():
        if s == W:
            count += 1

print(count)

Fixed submission:
W = input().lower()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.lower().split():
        if s == W:
            count += 1

print(count)

Buggy python submission (verdict: Runtime Error):
W = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT'
        break

    for s in line.lower().split():
        if s == W:
            count += 1

print(count)

Fixed submission:
W = input().lower()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.lower().split():
        if s == W:
            count += 1

print(count)

Buggy python submission (verdict: Runtime Error):
W = input().lower()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT'
        break

    for s in line.lower().split():
        if s == W:
            count += 1

print(count)

Fixed submission:
W = input().lower()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break

    for s in line.lower().split():
        if s == W:
            count += 1

print(count)
Buggy python submission (verdict: Runtime Error):
import sys

count = 0

for line in sys.stdin:
	array = line.readLine().split(" ")
	a = array[0]
	b = array[1]
	c = array[3]

	if (a < 1 or a > 10000) or (b < 1 or b > 10000) or (c < 1 or c > 10000):
		sys.exit()

	for x in xrange(a,b):
		if c % x == 0:
			count =  count + 1


	print count

Fixed submission:
import sys

count = 0

array = raw_input().split(' ')

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

if (a < 1 or a > 10000) or (b < 1 or b > 10000) or (c < 1 or c > 10000):
	sys.exit()

for x in xrange(a,b+1):
	if c % x == 0:
		count =  count + 1

print count
Buggy python submission (verdict: Runtime Error):
from itertools import combinations as comb
def get_ans():
	m, n = (int(x) for x in input().split())
	if m==0 and n==0:
		quit()
	ans = 0
	for nums in comb(list(range(1, min(m,n-3)))):
		if sum(nums) == n:
			ans += 1
	print(ans)
	
while True:
	get_ans()


Fixed submission:
from itertools import combinations as comb
def get_ans(m, n):
    ans = sum(1 for nums in comb(range(1, min(m+1,n-2)), 2) if ((n-sum(nums)>0) and (n-sum(nums) > max(nums)) and (n-sum(nums)<=m)))
    return ans
      
while True:
    m, n = (int(x) for x in input().split())
    if m==0 and n==0:
        quit()
    ans = get_ans(m, n)
    print(ans)

Buggy python submission (verdict: Runtime Error):
from itertools import combinations as comb
def get_ans(m, n):
    ans = sum(1 for nums in comb(range(1, min(m+1,n-2)), 2) if n-sum(nums)>0 and n-sum(nums) not in nums))
    return ans
      
while True:
    m, n = (int(x) for x in input().split())
    if m==0 and n==0:
        quit()
    ans = get_ans(m, n)
    print(ans)


Fixed submission:
from itertools import combinations as comb
def get_ans(m, n):
    ans = sum(1 for nums in comb(range(1, min(m+1,n-2)), 2) if ((n-sum(nums)>0) and (n-sum(nums) > max(nums)) and (n-sum(nums)<=m)))
    return ans
      
while True:
    m, n = (int(x) for x in input().split())
    if m==0 and n==0:
        quit()
    ans = get_ans(m, n)
    print(ans)

Buggy python submission (verdict: Runtime Error):
from itertools import combinations as comb
def get_ans(m, n):
    ans = sum(1 for nums in comb(range(1, min(m+1,n-2)), 2) if (n-sum(nums)>0 and n-sum(nums) not in nums)))
    return ans
      
while True:
    m, n = (int(x) for x in input().split())
    if m==0 and n==0:
        quit()
    ans = get_ans(m, n)
    print(ans)


Fixed submission:
from itertools import combinations as comb
def get_ans(m, n):
    ans = sum(1 for nums in comb(range(1, min(m+1,n-2)), 2) if ((n-sum(nums)>0) and (n-sum(nums) > max(nums)) and (n-sum(nums)<=m)))
    return ans
      
while True:
    m, n = (int(x) for x in input().split())
    if m==0 and n==0:
        quit()
    ans = get_ans(m, n)
    print(ans)
Buggy python submission (verdict: Runtime Error):
import numpy as np

r,c = map(int, input().split())
a=np.zeros([r+1,c+1])

for i in range(r):
    sumC = 0
    ar = input().split()
    for j in range(c):
        a[i,j]=int(ar[j])
        sumC +=int(ar[j])
    a[i,c]=sumC
    print(" ".join(map(str, ar)), end=" ")
    print(sumC)


for k in range(c+1):
    for m in range(r):
        a[r,k] += a[m,k]

for i in range(c):
    print(int(a[r,i]), end=" ")
print(int(a[r,c]))


Fixed submission:
r, c = map(int, input().split())
a = [[0 for i in range(c + 1)] for j in range(r + 1)]

for i in range(r):
    sumC = 0
    ar = input().split()
    for j in range(c):
        a[i][j] = int(ar[j])
        sumC += int(ar[j])
    a[i][c] = sumC

for k in range(c + 1):
    for m in range(r):
        a[r][k] += a[m][k]


for i in a:
    print(*i)
Buggy python submission (verdict: Runtime Error):
while True:

    x = input()

    if x == 0:
        break

    length = len(x)
    tot = 0

    for i in range(length):
        tot += int(x[i:i + 1])
    print(tot)



Fixed submission:
while True:

    x = input()

    if x == '0':
        break

    length = len(x)
    tot = 0

    for i in range(length):
        tot += int(x[i:i + 1])
    print(tot)

Buggy python submission (verdict: Runtime Error):
while True:

    x = input()

    if x == 0:
        break

    length = len(x)
    tot = 0

    for i in range(length):
        tot += int(x[i:i + 1])
    print(tot)


Fixed submission:
while True:

    x = input()

    if x == '0':
        break

    length = len(x)
    tot = 0

    for i in range(length):
        tot += int(x[i:i + 1])
    print(tot)
Buggy python submission (verdict: Runtime Error):
s=input()
p=input()
print('Yes' if p in s+s else 'No')

Fixed submission:
print(input().swapcase())
Buggy python submission (verdict: Runtime Error):
a, b = input(),input()

print "%d %d" % (a*b, 2*(a+b))

Fixed submission:
l = map(int, raw_input().split())
a = l[0]
b = l[1]

print "%d %d" % (a*b, 2*(a+b))
Buggy python submission (verdict: Time Limit Exceeded):
n = input()
s = map(int, raw_input().split())
q = input()
t = map(int, raw_input().split())
cnt = 0
for x in t:
    if x in s:
        cnt += 1
print cnt

Fixed submission:
n = input()
s = list(set(map(int, raw_input().split())))
q = input()
t = list(set(map(int, raw_input().split())))
b = [False] * (10**7+1)
for x in s:
    b[x] = True
cnt = 0
for x in t:
    if b[x]:
        cnt += 1
print cnt

Buggy python submission (verdict: Time Limit Exceeded):
n = input()
s = sorted(map(int, raw_input().split()))
q = input()
t = sorted(map(int, raw_input().split()))
cnt = 0
for x in t:
    if x in s:
        cnt += 1
print cnt

Fixed submission:
n = input()
s = list(set(map(int, raw_input().split())))
q = input()
t = list(set(map(int, raw_input().split())))
b = [False] * (10**7+1)
for x in s:
    b[x] = True
cnt = 0
for x in t:
    if b[x]:
        cnt += 1
print cnt

Buggy python submission (verdict: Time Limit Exceeded):
n = input()
s = sorted(list(set(map(int, raw_input().split()))))
q = input()
t = sorted(list(set(map(int, raw_input().split()))))
cnt = 0
for x in s:
    for y in t:
        if x < y: break
        if x == y: cnt += 1
print cnt

Fixed submission:
n = input()
s = list(set(map(int, raw_input().split())))
q = input()
t = list(set(map(int, raw_input().split())))
b = [False] * (10**7+1)
for x in s:
    b[x] = True
cnt = 0
for x in t:
    if b[x]:
        cnt += 1
print cnt
Buggy python submission (verdict: Runtime Error):
foo = raw_input()
print foo**3

Fixed submission:
print (input())**3

Buggy python submission (verdict: Runtime Error):
foo = raw_input()
print foo**3

Fixed submission:
print (input())**3
Buggy python submission (verdict: Runtime Error):
a,b = map(int,input().split())
print map(int,a*b,(a*b)*2.split)

Fixed submission:
foo,bar = map(int,raw_input().split())
print '%d %d' % (foo*bar,(foo+bar)*2)

Buggy python submission (verdict: Runtime Error):
a,b = map(int,input().split())
print a*b + ' ' + (a*b)*2

Fixed submission:
foo,bar = map(int,raw_input().split())
print '%d %d' % (foo*bar,(foo+bar)*2)

Buggy python submission (verdict: Runtime Error):
a,b = map(int,input().split())
print a*b + ' ' + (a+b)*2

Fixed submission:
foo,bar = map(int,raw_input().split())
print '%d %d' % (foo*bar,(foo+bar)*2)

Buggy python submission (verdict: Runtime Error):
a,b = map(int,input().split())
foo = a*b
bar = (a+b)*2
print foo + ' ' + bar

Fixed submission:
foo,bar = map(int,raw_input().split())
print '%d %d' % (foo*bar,(foo+bar)*2)
Buggy python submission (verdict: Runtime Error):
a,b = map(int,raw_input().split())
if a>b:
	print 'a' + '>' + 'b'
elif a<b:
	print 'a' + '<' + 'b'
elif a==b:
	print 'a' + '==' + b'

Fixed submission:
foo,bar = map(int,raw_input().split())
if foo > bar: print 'a > b'
elif foo < bar: print 'a < b'
elif foo == bar: print 'a == b'
Buggy python submission (verdict: Runtime Error):
while True:
	x = raw_input()
	i += 1
	if x == 0:
		break
	print 'Case ' + str(i) + ': ' + str(x)

Fixed submission:
i = 0
while 1:
	foo = raw_input()
	i += 1
	if foo == '0':break
	print 'Case %s: %s'%(i,foo)

Buggy python submission (verdict: Runtime Error):
while True:
	x = raw_input()
	i += 1
	if x == '0':
		break
	print 'Case ' + str(i) + ': ' + str(x)

Fixed submission:
i = 0
while 1:
	foo = raw_input()
	i += 1
	if foo == '0':break
	print 'Case %s: %s'%(i,foo)

Buggy python submission (verdict: Runtime Error):
i = 0
while 1:
	foo = raw_input()
	i += 1
	if foo == '0':break
	print 'Case %d: %d'%(i,foo)

Fixed submission:
i = 0
while 1:
	foo = raw_input()
	i += 1
	if foo == '0':break
	print 'Case %s: %s'%(i,foo)
Buggy python submission (verdict: Runtime Error):
a,b=raw_input().split()
print a*b, (a+b)<<1

Fixed submission:
a,b=map(int, raw_input().split())
print a*b, (a+b)<<1
Buggy python submission (verdict: Runtime Error):
i=0
while 1:
 i+=1
 print'Case %d: %s'%(i,raw_input())

Fixed submission:
i=0
while 1:
 i+=1
 try:
  s=input()
  assert(s)
  print'Case %d: %d'%(i,s)
 except:
  break
Buggy python submission (verdict: Runtime Error):
print (x^3)

Fixed submission:
x = raw_input()
print(int(x)**3)

Buggy python submission (verdict: Runtime Error):
print (x**3)

Fixed submission:
x = raw_input()
print(int(x)**3)

Buggy python submission (verdict: Runtime Error):
 x = map(int, raw_input().split(" "))
 print(x**3)

Fixed submission:
x = raw_input()
print(int(x)**3)

Buggy python submission (verdict: Runtime Error):
 x = raw_input()
 print(int(x)**3)

Fixed submission:
x = raw_input()
print(int(x)**3)

Buggy python submission (verdict: Runtime Error):
 x = input()
 print(int(x)**3)

Fixed submission:
x = raw_input()
print(int(x)**3)
Buggy python submission (verdict: Runtime Error):
 x = str(raw_input()).split(" ")
 menseki = x[0] * x[1]
 syuu = x[0]*2 + x[1]*2
 
 print(menseki + " " + syuu) 

Fixed submission:
a, b = map(int, raw_input().split(' '))
print(str(a*b)+(" ")+str((a+b)*2))

Buggy python submission (verdict: Runtime Error):
a,b=map(int, raw_input().split(" "))
print(a*b +(" ")+(a+b)*2)

Fixed submission:
a, b = map(int, raw_input().split(' '))
print(str(a*b)+(" ")+str((a+b)*2))

Buggy python submission (verdict: Runtime Error):
a, b = map(int(), raw_input().split(' '))
print(str(a*b)+(" ")+str((a+b)*2))

Fixed submission:
a, b = map(int, raw_input().split(' '))
print(str(a*b)+(" ")+str((a+b)*2))
Buggy python submission (verdict: Runtime Error):
# AOJ code
strict = input()
str_list = strict.sprit(' ')
a = str_list[0]
b = str_list[1]

if (a > b):
	print ("a > b")
elif (a<b):
	print ("a < b")
else:
	print ("a = b")

Fixed submission:
import sys
strict = raw_input()
str_list = strict.split(' ')
a = int(str_list[0])
b = int(str_list[1])

if( a > b ):
	print("a > b")
elif( a < b ):
	print("a < b")
else:
	print("a == b")

Buggy python submission (verdict: Runtime Error):

strict = input()
str_list = strict.sprit(' ')
a = str_list[0]
b = str_list[1]

if (a > b):
	print ("a > b")
elif (a<b):
	print ("a < b")
else:
	print ("a = b")

Fixed submission:
import sys
strict = raw_input()
str_list = strict.split(' ')
a = int(str_list[0])
b = int(str_list[1])

if( a > b ):
	print("a > b")
elif( a < b ):
	print("a < b")
else:
	print("a == b")

Buggy python submission (verdict: Runtime Error):
strict = raw_input()
str_list = strict.sprlt(' ')
a = str_list[0]
b = str_list[1]

if (a > b):
	print ("a > b")
elif (a<b):
	print ("a < b")
else:
	print ("a == b")

Fixed submission:
import sys
strict = raw_input()
str_list = strict.split(' ')
a = int(str_list[0])
b = int(str_list[1])

if( a > b ):
	print("a > b")
elif( a < b ):
	print("a < b")
else:
	print("a == b")
Buggy python submission (verdict: Runtime Error):

inlist = input()
inlist_list = inlist.split(' ')
ans_list = inlist_list.sort()
a = ans_list.pop[0]
b = ans_list.pop[1]
c = ans_list.pop[2]

print(a+" "+b+" "+c)

Fixed submission:
inlist = raw_input()
inlist = inlist.split(' ')
inlist.sort()
a = inlist[0]
b = inlist[1]
c = inlist[2]

print(a+" "+b+" "+c)
Buggy python submission (verdict: Runtime Error):
K = int(input())
print([ACL]*K)

Fixed submission:
K = int(input())
if K == 1:
    print("ACL")
elif K == 2:
    print("ACLACL")
elif K == 3:
    print("ACLACLACL")
elif K == 4:
    print("ACLACLACLACL")
elif K == 5:
    print("ACLACLACLACLACL")
Buggy python submission (verdict: Runtime Error):
N = int(input())
z,w = [],[]
K = 0
for i in range(N):
  x,y = map(int,input().split())
  z.append(x)
  w.append(y)
for j in range(1,N-1):
  if z[j] == w[j] and z[j+1] == w[j+1] and z[j+2] == w[j+2]:
    K += 1

if K >= 1:
  print("Yes")
else:
  print("No")

Fixed submission:
N = int(input())
z,w = [],[]
K = 0
for i in range(N):
  x,y = map(int,input().split())
  z.append(x)
  w.append(y)
for j in range(N-2):
  if z[j] == w[j] and z[j+1] == w[j+1] and z[j+2] == w[j+2]:
    K += 1

if K >= 1:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
N = int(input())
z,w = [],[]
K = 0
for i in range(N):
  x,y = map(int,input().split())
  z.append(x)
  w.append(y)
for j in range(N):
  if z[j] == w[j] and z[j+1] == w[j+1] and z[j+2] == w[j+2]:
    K += 1

if K >= 1:
  print("Yes")
else:
  print("No")

Fixed submission:
N = int(input())
z,w = [],[]
K = 0
for i in range(N):
  x,y = map(int,input().split())
  z.append(x)
  w.append(y)
for j in range(N-2):
  if z[j] == w[j] and z[j+1] == w[j+1] and z[j+2] == w[j+2]:
    K += 1

if K >= 1:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
K = 0
for C in range(1,N):
  K += sum(A*B==N-C for A in range(1,N) for B in range(1,N))

print(K)

Fixed submission:
import math
N = int(input())
A = [0]*(N)
for i in range(0,N):
    A[i] = math.floor((N-1)/(i+1))
print(sum(A))

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
print(sum(A*B + C == N for A in range(1,N) for B in range(1,N) for C in range(1,N)))

Fixed submission:
import math
N = int(input())
A = [0]*(N)
for i in range(0,N):
    A[i] = math.floor((N-1)/(i+1))
print(sum(A))
Buggy python submission (verdict: Runtime Error):
a,b,c,d = map(int,input().split())
print(max(a*c,a*d,b*c,b*d))


Fixed submission:
x = int(input())
if x == 0:
  print(1)
else:
  print(0)
Buggy python submission (verdict: Runtime Error):
a,b,c,d = map(int,input().split())
print(max[a*c,a*d,b*c,b*d])

Fixed submission:
a,b,c,d = map(int,input().split())
print(max(a*c,a*d,b*c,b*d))
Buggy python submission (verdict: Runtime Error):
K,X= map(int,input().split())

if 500*K >= X:
  print("Yes")
 else:
  print("No")

Fixed submission:
K,X= map(int,input().split())

if 500*K >= X:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
K,X= map(int,input().split())

if 500*X >= X:
  print("Yes")
 else:
  print("No")

Fixed submission:
K,X= map(int,input().split())

if 500*K >= X:
  print("Yes")
else:
  print("No")