Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
n, m, l = map(int,input().split())
a = [list(map(int, input().split()))for i in range(n)]
b = [list(map(int, input().split()))for j in range(m)]
num = [[0 for i in range(n)]for j in range(l)]
for k in range(n):
    for i in range(l):
        for j in range(m):
            num[k][i] += a[k][j] * b[j][i]
for i in range(n):
    print(" ".join(map(str, num[i])))



Fixed submission:
n, m, l = map(int,input().split())
a = [list(map(int, input().split()))for i in range(n)]
b = [list(map(int, input().split()))for j in range(m)]
num = [[0 for i in range(l)]for j in range(n)]
for k in range(n):
    for i in range(l):
        for j in range(m):
            num[k][i] += a[k][j] * b[j][i]
for i in range(n):
    print(" ".join(map(str, num[i])))

Buggy python submission (verdict: Runtime Error):
n, m, l = map(int,input().split())
a = [list(map(int, input().split()))for i in range(n)]
b = [list(map(int, input().split()))for j in range(m)]
num = [[0 for i in range(l)]for j in range(n)]
for k in range(n):
    for i in range(l):
        for j in range(m):
            num[k][i] += a[k][j] * b[j][i]
for i in range(n):
    print(" ".join(map(num[i])))




Fixed submission:
n, m, l = map(int,input().split())
a = [list(map(int, input().split()))for i in range(n)]
b = [list(map(int, input().split()))for j in range(m)]
num = [[0 for i in range(l)]for j in range(n)]
for k in range(n):
    for i in range(l):
        for j in range(m):
            num[k][i] += a[k][j] * b[j][i]
for i in range(n):
    print(" ".join(map(str, num[i])))
Buggy python submission (verdict: Runtime Error):
a,b = map(int, [i for i in input().split(' ')])
print a*2, b*2

Fixed submission:
import sys
a,b = map(int, [i for i in sys.stdin.readline().split(" ")])
print a*b, (a+b)*2

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

Fixed submission:
import sys
a,b = map(int, [i for i in sys.stdin.readline().split(" ")])
print a*b, (a+b)*2
Buggy python submission (verdict: Runtime Error):
while True:
    m, f, r = map(int, raw_input().split())
    if m == -1 and f == -1 and r == -1:
        break
    elif m == -1 or f == -1:
        print "F"
    elif m + f >= 80:
        print "A"a
    elif m + f >= 65:
        print "B"
    elif m + f >= 50:
        print "C"
    elif m + f >= 30 and f >= 50:
        print "C"
    elif m + f >= 30:
        print "D"
    else:
        print "F"

Fixed submission:
def judge(m = -1, f = -1, r = -1):
    result = ""
    if m == -1 or f == -1:
        result = 'F'
    elif m + f >= 80:
        result = 'A'
    elif m + f >= 65:
        result = 'B'
    elif m + f >= 50:
        result = 'C'
    elif m + f >= 30:
        if r >= 50:
            result = 'C'
        else:
            result = 'D'
    else:
        result ='F'
    return result

while True:
    m, f, r = map(int, input().split())
    if m == -1 and f == -1 and r == -1:
        break
    print(judge(m, f, r))
Buggy python submission (verdict: Runtime Error):
W = input().rstrip()
text = ""
while True:
    line = input().rstrip()
    if line == "END_OF_TEXTS":
        break
    text += line
print(text.count(W))


Fixed submission:
W = input().rstrip()
lst = []
while True:
    line = input().rstrip()
    if line == "END_OF_TEXT":
        break
    lst += line.lower().split()
print(lst.count(W))

Buggy python submission (verdict: Runtime Error):
W = input().rstrip()
text = ""
while True:
    line = input().rstrip()
    text += line if line == "END_OF_TEXTS": break
print(text.count(W))


Fixed submission:
W = input().rstrip()
lst = []
while True:
    line = input().rstrip()
    if line == "END_OF_TEXT":
        break
    lst += line.lower().split()
print(lst.count(W))
Buggy python submission (verdict: Runtime Error):
  x, y = map(int, input(). split())
  if x < y:
    print('x < y')
  elif x == y:
      print('x == y')
  else:
    pass


Fixed submission:
a, b = map(int,input().split())
 
if a < b :
  print('a < b')
elif a > b:
    print('a > b')
else :
    print('a == b')

Buggy python submission (verdict: Runtime Error):
  x, y = map(int, input(). split())
  if x < y:
    print('x < y')
  elif x == y:
      print('x == y')
  else:
    pass


Fixed submission:
a, b = map(int,input().split())
 
if a < b :
  print('a < b')
elif a > b:
    print('a > b')
else :
    print('a == b')

Buggy python submission (verdict: Runtime Error):
  x, y = map(int, input(). split())
  if x < y:
    print('x < y')
  elif x == y:
      print('x == y')
  else:
    pass


Fixed submission:
a, b = map(int,input().split())
 
if a < b :
  print('a < b')
elif a > b:
    print('a > b')
else :
    print('a == b')
Buggy python submission (verdict: Runtime Error):
n =[]

i = list(map(int, input().split()))
N = len[i]


Fixed submission:
c = 0

while True:
  x = int(input()); c += 1
  if x ==0: break
  print('Case {}: {}'.format(c, x))
Buggy python submission (verdict: Runtime Error):
a,b,c = map(int, input().split())

array =[]
l = b-a

for i in range(l):
  n = c %i; i +=1
  if n ==0:
    array.append(i)
    print(len(array))
 


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

ans = 0
num = a

while True:
    if c%num == 0:
        ans += 1
    num += 1
    if num > b:
        break

print(ans)
Buggy python submission (verdict: Runtime Error):
import math
r = int(input())

pi =math.pi

print(r*r*pi,2*r*pi)


Fixed submission:
import math
r = float(input())

pi =math.pi

print('%.10f %.10f'%(r*r*pi,2*r*pi))
Buggy python submission (verdict: Runtime Error):
S = int(input())
h = S // 3600
m = (S - h*3600)//60
s = S - h*3600 - m*60

print(h+':'+m+':'+s)


Fixed submission:
S = int(input())
h = S // 3600
m = (S - h*3600)//60
s = S - h*3600 - m*60

print(str(h)+':'+str(m)+':'+str(s))

Buggy python submission (verdict: Runtime Error):
S = int(input())
h = S // 3600
m = (S - h*3600)//60
s = S - h*3600 - m*60

print(h,':'m,':',s)


Fixed submission:
S = int(input())
h = S // 3600
m = (S - h*3600)//60
s = S - h*3600 - m*60

print(str(h)+':'+str(m)+':'+str(s))
Buggy python submission (verdict: Runtime Error):
a,b,c = [int(input()) for i in range(3)]
if a<b and b<c:
    print('Yes')
else:
    print('No')


Fixed submission:
a,b,c = map(int,input().split())
if a<b and b<c:
    print('Yes')
else:
    print('No')

Buggy python submission (verdict: Runtime Error):
a,b,c = [int(input().split()) for i in range(3)]
if a<b and b<c:
    print('Yes')
else:
    print('No')


Fixed submission:
a,b,c = map(int,input().split())
if a<b and b<c:
    print('Yes')
else:
    print('No')

Buggy python submission (verdict: Runtime Error):
li = [int(input().split()) for i in range(3)]
if li[0]<li[1] and li[1]<li[2]:
    print('Yes')
else:
    print('No')


Fixed submission:
a,b,c = map(int,input().split())
if a<b and b<c:
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
W,H,x,y,r = mao(int,input().split())
if x-r>=0 and x+r<=W and y-r>=0 and y+r<=0:
    print('Yes')
else:
    print('No')


Fixed submission:
W,H,x,y,r = map(int,input().split())
if x-r>=0 and x+r<=W and y-r>=0 and y+r<=H:
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
while True:
    i = 1
    print('Case '+str(i)+': '+input())
    i +=1


Fixed submission:
i = 1
while True:
    a = input()
    if a =='0':
        break
    else:
        print('Case '+str(i)+': '+a)
        i +=1

Buggy python submission (verdict: Runtime Error):
i = 1
while True:
    print('Case '+str(i)+': '+input())
    i +=1


Fixed submission:
i = 1
while True:
    a = input()
    if a =='0':
        break
    else:
        print('Case '+str(i)+': '+a)
        i +=1

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


Fixed submission:
i = 1
while True:
    a = input()
    if a =='0':
        break
    else:
        print('Case '+str(i)+': '+a)
        i +=1
Buggy python submission (verdict: Runtime Error):
while True:
    a,b = map(int,input().split())
    if a ==0 and b ==0:
        break
    else:
        if a>=b:
        print(a,b)
        else:
        a,b =b,a
        print(a,b)


Fixed submission:
while True:
    a,b = map(int,input().split())
    if a ==0 and b ==0:
        break
    else:
        if a<=b:
            print(a,b)
        else:
            a,b =b,a
            print(a,b)

Buggy python submission (verdict: Runtime Error):
while True:
    a,b = map(int,input().split())
    if a ==0 and b ==0:
        break
    else:
        if a<b:
            a,b =b,a
        print(a,b)else:
        


Fixed submission:
while True:
    a,b = map(int,input().split())
    if a ==0 and b ==0:
        break
    else:
        if a<=b:
            print(a,b)
        else:
            a,b =b,a
            print(a,b)

Buggy python submission (verdict: Runtime Error):
while True:
    a,b = map(int,input().split())
    if a ==0 and b ==0:
        break
    else:
        if a<=b:
        print(a,b)
        else:
            a,b =b,a
            print(a,b)


Fixed submission:
while True:
    a,b = map(int,input().split())
    if a ==0 and b ==0:
        break
    else:
        if a<=b:
            print(a,b)
        else:
            a,b =b,a
            print(a,b)
Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
print(r**2*math.pi,2*r*math.pi)


Fixed submission:
import math
r = float(input())
print("%.10f %.10f"%(r**2*math.pi,2*r*math.pi))

Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
print("%.10f %.10f"%(r**2*math.pi,2*r*math.pi))


Fixed submission:
import math
r = float(input())
print("%.10f %.10f"%(r**2*math.pi,2*r*math.pi))
Buggy python submission (verdict: Runtime Error):
while True:
    h,w = map(int,input().split())
    for i in range(h):
        print('#'+'.'*(w-2)+'#')
    print('')


Fixed submission:
while True:
    h,w = map(int,input().split())
    if h==0 and w==0:
        break
    else:
        for i in range(h):
            if i == 0 or i== h-1:
                print('#'*w)
            else:
                print('#'+'.'*(w-2)+'#')
    print('')

Buggy python submission (verdict: Runtime Error):
while True:
    h,w = map(int,input().split())
    for i in range(h):
        if i == 0 or i== h-1:
            print('#'*w)
        else:
            print('#'+'.'*(w-2)+'#')
    print('')


Fixed submission:
while True:
    h,w = map(int,input().split())
    if h==0 and w==0:
        break
    else:
        for i in range(h):
            if i == 0 or i== h-1:
                print('#'*w)
            else:
                print('#'+'.'*(w-2)+'#')
    print('')
Buggy python submission (verdict: Runtime Error):
while True:
    h,w = map(int,input().split())
    for i in range(h):
        if i%2 ==0:
            for j in range(w):
                if j%2 ==0:
                    print('#')
                else:
                    print('.')
        else:
            for j in range(w):
                if j%2 ==0:
                    print('.')
                else:
                    print('#')
    print('')


Fixed submission:
while True:
    H,W = [int(i) for i in input().split()]
    if H == 0 and W == 0:
        break
    for x in range(0,H):
        if x % 2 == 0:
            for y in range(0,W):
                if y % 2 == 0:
                    print("#",end="")
                else:
                    print(".",end="")
            print()
        else:
            for y in range(0,W):
                if y % 2 == 0:
                    print(".",end="")
                else:
                    print("#",end="")
            print()
    print()
Buggy python submission (verdict: Runtime Error):
cnt = input()
li = map(int,input().split())
re_li = li[::-1]
print(re_li)



Fixed submission:
cnt = int(input())
li = list(map(int,input().split()))
re_li = li[::-1]
print(' '.join(map(str,re_li)))

Buggy python submission (verdict: Runtime Error):
cnt = int(input())
li = list(map(int,input().split()))
re_li = li[::-1]
for i in range(cnt):
    print(' '.join(map(int,re_li[i])


Fixed submission:
cnt = int(input())
li = list(map(int,input().split()))
re_li = li[::-1]
print(' '.join(map(str,re_li)))

Buggy python submission (verdict: Runtime Error):
cnt = int(input())
li = list(map(int,input().split()))
re_li = li[::-1]
print(' '.join(map(int,re_li)


Fixed submission:
cnt = int(input())
li = list(map(int,input().split()))
re_li = li[::-1]
print(' '.join(map(str,re_li)))

Buggy python submission (verdict: Runtime Error):
cnt = int(input())
li = list(map(int,input().split()))
re_li = li[::-1]
print(' '.join(map(str,re_li)


Fixed submission:
cnt = int(input())
li = list(map(int,input().split()))
re_li = li[::-1]
print(' '.join(map(str,re_li)))

Buggy python submission (verdict: Runtime Error):
cnt = int(input())
li = list(map(int,input().split()))
re_li = li[::-1]
print(' '.join(map(int,re_li)))



Fixed submission:
cnt = int(input())
li = list(map(int,input().split()))
re_li = li[::-1]
print(' '.join(map(str,re_li)))
Buggy python submission (verdict: Runtime Error):
while True:
    n = list(map(int,input()))
    if n[0] ==0:
        break
    else:
        print(n.sum())


Fixed submission:
while True:
    n = list(map(int,input()))
    if n[0] ==0:
        break
    else:
        print(sum(n))
Buggy python submission (verdict: Runtime Error):
w = input()
li = list(input().split().swapcase())
cnt = 0
for i in range(len(li)):
    if w ==li[i]:
        cnt +=1
print(cnt)


Fixed submission:
w=input().lower()
c=[]
s=input()
while(s!='END_OF_TEXT'):
    c+=s.lower().split();
    s=input()
print(len([x for x in c if x==w]))

Buggy python submission (verdict: Runtime Error):
w = input()
li = list(input().split().lower())
cnt = 0
for i in range(len(li)):
    if w ==li[i]:
        cnt +=1
print(cnt)


Fixed submission:
w=input().lower()
c=[]
s=input()
while(s!='END_OF_TEXT'):
    c+=s.lower().split();
    s=input()
print(len([x for x in c if x==w]))
Buggy python submission (verdict: Runtime Error):
cnt = int(input())
a = []
for i in range(cnt):
    op,n = map(int,input().split())
    if op == 0:
        a.append(n)
    elif op ==1:
        print(a[n])
    else:
        a.pop(-1)


Fixed submission:
cnt = int(input())
a = []
for i in range(cnt):
    li = list(map(int,input().split()))
    if li[0] == 0:
        a.append(li[1])
    elif li[0] ==1:
        print(a[li[1]])
    else:
        a.pop(-1)

Buggy python submission (verdict: Runtime Error):
cnt = int(input())
a = []
for i in range(cnt):
    li = list(map(int,input().split()))
    if li[0] == 0:
        a.append(n)
    elif li[0] ==1:
        print(a[n])
    else:
        a.pop(-1)


Fixed submission:
cnt = int(input())
a = []
for i in range(cnt):
    li = list(map(int,input().split()))
    if li[0] == 0:
        a.append(li[1])
    elif li[0] ==1:
        print(a[li[1]])
    else:
        a.pop(-1)
Buggy python submission (verdict: Runtime Error):
cnt = int(input())
a = []
for i in range(cnt):
    li = list(map(int,input().split()))
    if li[0] == 0:
        if li[1] == 0:
            a.insert(0,li[2])
        else:
            a.insert(-1,li[2])
    if li[0] == 1:
        print(a[li[1]])
    if li[0] ==2:
        if li[1]==0:
            a.popleft()
        else:
            a.pop()


Fixed submission:
from collections import deque
cnt = int(input())
a = deque()

for i in range(cnt):
    li = list(map(int,input().split()))
    if li[0] == 0:
        if li[1] == 0:
            a.appendleft(li[2])
        else:
            a.append(li[2])
    if li[0] == 1:
        print(a[li[1]])
    if li[0] ==2:
        if li[1]==0:
            a.popleft()
        else:
            a.pop()
Buggy python submission (verdict: Runtime Error):
a,b,c = map(int,input(),split())
if a>b:
  a,b=b,a
if b>c:
  c,b=b,c
if a>b:
  a,b=b,a
print(a,b,c)



Fixed submission:
a,b,c = map(int,input().split())
if a > b:
  a,b = b,a
if b > c:
  c, b = b, c
if a > b:
  a, b = b, a
print(a,b,c)
Buggy python submission (verdict: Runtime Error):
import numpy as np
n, m, l = list(map(int, input().split()))
a = np.array([[int(j) for j in input().split()] for i in range(n)])
b = np.array([[int(j) for j in input().split()] for i in range(m)])
c = np.dot(a, b)

length = [len(x) for x in c]

for i in range(len(c)):
    for j in range(length[0]):
        print(c[i][j], end='')
        if (length[0]-1) != j:
            print(' ', end='')
    print('\n', end='')


Fixed submission:
n, m, l = list(map(int, input().split()))
a = [[int(j) for j in input().split()] for i in range(n)]
b = [[int(j) for j in input().split()] for i in range(m)]
c = [[0 for j in range(l)] for i in range(n)]

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

for i in c:
    print(*i)

Buggy python submission (verdict: Runtime Error):
n, m, l = list(map(int, input().split()))
a = [[int(j) for j in input().split()] for i in range(n)]
b = [[int(j) for j in input().split()] for i in range(m)]
c = [[0 for j in range(n)] for i in range(l)]

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

for i in c:
    print(*i)


Fixed submission:
n, m, l = list(map(int, input().split()))
a = [[int(j) for j in input().split()] for i in range(n)]
b = [[int(j) for j in input().split()] for i in range(m)]
c = [[0 for j in range(l)] for i in range(n)]

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

for i in c:
    print(*i)
Buggy python submission (verdict: Runtime Error):
from math import pi

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


Fixed submission:
from math import pi

r = float(input())
print(r ** 2 * pi, 2 * r * pi)
Buggy python submission (verdict: Runtime Error):
a,b=int(input())
print((a+b)*2,a*b)


Fixed submission:
a,b=map(int,input().split())
print(a*b,(a+b)*2)
Buggy python submission (verdict: Runtime Error):
a,b =(int(i) for i in input.split())
if a>b:
 print("a > b")
 


Fixed submission:
a,b =map(int, input().split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else : 
 print("a < b")

Buggy python submission (verdict: Runtime Error):
a,b =(int(i) for i in input.split())
if a > b:
 print("a > b")
if a == b:
 print("a == b")
if a > b: 
 print("a > b")


Fixed submission:
a,b =map(int, input().split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else : 
 print("a < b")

Buggy python submission (verdict: Runtime Error):
a,b =(int(i) for i in input.split())
if a > b:
 print("a > b")
if a == b:
 print("a == b")
if a > b: 
 print("a > b")
 elif


Fixed submission:
a,b =map(int, input().split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else : 
 print("a < b")

Buggy python submission (verdict: Runtime Error):
a,b =(int(i) for i in input.split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
elif a > b: 
 print("a > b")


Fixed submission:
a,b =map(int, input().split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else : 
 print("a < b")

Buggy python submission (verdict: Runtime Error):
a,b =(int(i) for i in input.split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else a < b: 
 print("a < b")


Fixed submission:
a,b =map(int, input().split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else : 
 print("a < b")

Buggy python submission (verdict: Runtime Error):
a,b =(int(i) for i in input.split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else , 
 print("a < b")


Fixed submission:
a,b =map(int, input().split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else : 
 print("a < b")

Buggy python submission (verdict: Runtime Error):
a,b =(int(i) for i in input.split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else : 
 print("a < b")


Fixed submission:
a,b =map(int, input().split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else : 
 print("a < b")

Buggy python submission (verdict: Runtime Error):
a,b =map(int(i) for i in input.split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else : 
 print("a < b")


Fixed submission:
a,b =map(int, input().split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else : 
 print("a < b")

Buggy python submission (verdict: Runtime Error):
a,b =map(int.(i) for i in input.split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else : 
 print("a < b")


Fixed submission:
a,b =map(int, input().split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else : 
 print("a < b")

Buggy python submission (verdict: Runtime Error):
a,b =map(int, input.split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else : 
 print("a < b")


Fixed submission:
a,b =map(int, input().split())
if a > b:
 print("a > b")
elif  a == b:
 print("a == b")
else : 
 print("a < b")
Buggy python submission (verdict: Runtime Error):
a,b,c=map(int,input().split())
if a < b < c:
 print(Yes)


Fixed submission:
a,b,c=map(int,input().split())
if a < b < c:
 print("Yes")
else:
 print("No")
Buggy python submission (verdict: Runtime Error):
x,y,r,W,H=(int,input().split())
if x-r<0 or x+r>W:
    print ("No")
elif x-r>0 and x+r<W:
    print ("Yes")


Fixed submission:
W,H,x,y,r,=map(int,input().split())
if (x-r<0 or x+r>W) or (y-r<0 or y+r>H):
    print ("No")
elif (x-r>=0 and x+r<=W) or (y-r>=0 and y+r<=H):
    print ("Yes")

Buggy python submission (verdict: Runtime Error):
W,H,x,y,r,=map(int,input().split())
if x-r<0 (or) x+r>W and() y-r<0 (or) y+r>H:
    print ("No")
elif x-r>=0 (and) x+r<=W and() y-r>=0 (and) y+r<=H:
    print ("Yes")


Fixed submission:
W,H,x,y,r,=map(int,input().split())
if (x-r<0 or x+r>W) or (y-r<0 or y+r>H):
    print ("No")
elif (x-r>=0 and x+r<=W) or (y-r>=0 and y+r<=H):
    print ("Yes")

Buggy python submission (verdict: Runtime Error):
W,H,x,y,r,=map(int,input().split())
if (x-r<0 or x+r>W) and() (y-r<0 or y+r>H):
    print ("No")
elif (x-r>=0 and x+r<=W) and() (y-r>=0 and y+r<=H):
    print ("Yes")


Fixed submission:
W,H,x,y,r,=map(int,input().split())
if (x-r<0 or x+r>W) or (y-r<0 or y+r>H):
    print ("No")
elif (x-r>=0 and x+r<=W) or (y-r>=0 and y+r<=H):
    print ("Yes")
Buggy python submission (verdict: Runtime Error):
a,b,c = map(int,Input().split())



Fixed submission:
a, b, c = map(int, input().split())
ans = 0
for i in range(a, b + 1):
	if c % i == 0:
		ans = ans + 1
print(ans)
Buggy python submission (verdict: Runtime Error):
r,c = map(int,input().split())

A = [list(map(int,input().split())) for i in range(c)]
for i in range(c):
    for j in range(r):
        print(A[i][j],end=" ")
    print(sum(A[i]))
for i in range(c):
    ans = 0
    for j in range(r):
        ans += A[j][i]
    print(ans,end=" ")
print(sum(map(sum,A)))



Fixed submission:
r,c = map(int,input().split())

A = [list(map(int,input().split())) for i in range(r)]
for i in range(r):
    for j in range(c):
        print(A[i][j],end=" ")
    print(sum(A[i]))
for i in range(c):
    ans = 0
    for j in range(r):
        ans += A[j][i]
    print(ans,end=" ")
print(sum(map(sum,A)))