Buggy python submission (verdict: Runtime Error):
n = 10**4
ans = [0]*10**4
for x in range(1,101):
    for y in range(1,101):
        for z in range(1,101):
            a = (x+y+z)**2 -(x*y+y*z+z*x)
            if a <= N:
                ans[a-1] += 1
for i in range(int(input())):
    print(ans[i])

Fixed submission:
n = 10**4
ans = [0]*10**4
for x in range(1,100):
    for y in range(1,100):
        for z in range(1,100):
            a = (x+y+z)**2 -(x*y+y*z+z*x)
            if a <= n:
                ans[a-1] += 1
for i in range(int(input())):
    print(ans[i])

Buggy python submission (verdict: Runtime Error):
n = 10**2
k = [0]*10**2
for x in range(1,9):
    for y in range(1,9):
        for z in range(1,9):
            for i in range(n+1):
                if (x+y+z)**2 -(x*y+y*z+z*x) == i:
                    k[i-1] += 1
for i in range(int(input())):
    print(k[i])

Fixed submission:
n = 10**4
ans = [0]*10**4
for x in range(1,100):
    for y in range(1,100):
        for z in range(1,100):
            a = (x+y+z)**2 -(x*y+y*z+z*x)
            if a <= n:
                ans[a-1] += 1
for i in range(int(input())):
    print(ans[i])

Buggy python submission (verdict: Runtime Error):
n = 10**2
k = [0]*10**2
for x in range(1,10):
    for y in range(1,10):
        for z in range(1,10):
            for i in range(n+1):
                if (x+y+z)**2 -(x*y+y*z+z*x) == i:
                    k[i-1] += 1
for i in range(int(input())):
    print(k[i])

Fixed submission:
n = 10**4
ans = [0]*10**4
for x in range(1,100):
    for y in range(1,100):
        for z in range(1,100):
            a = (x+y+z)**2 -(x*y+y*z+z*x)
            if a <= n:
                ans[a-1] += 1
for i in range(int(input())):
    print(ans[i])

Buggy python submission (verdict: Runtime Error):
n = 10**2
k = [0]*10**2
for x in range(1,20):
    for y in range(1,20):
        for z in range(1,20):
            for i in range(n+1):
                if (x+y+z)**2 -(x*y+y*z+z*x) == i:
                    k[i-1] += 1
for i in range(int(input())):
    print(k[i])

Fixed submission:
n = 10**4
ans = [0]*10**4
for x in range(1,100):
    for y in range(1,100):
        for z in range(1,100):
            a = (x+y+z)**2 -(x*y+y*z+z*x)
            if a <= n:
                ans[a-1] += 1
for i in range(int(input())):
    print(ans[i])

Buggy python submission (verdict: Runtime Error):
n = 10**2
k = [0]*10**2
for x in range(1,34):
    for y in range(1,34):
        for z in range(1,34):
            for i in range(n+1):
                if (x+y+z)**2 -(x*y+y*z+z*x) == i:
                    k[i-1] += 1
for i in range(int(input())):
    print(k[i])

Fixed submission:
n = 10**4
ans = [0]*10**4
for x in range(1,100):
    for y in range(1,100):
        for z in range(1,100):
            a = (x+y+z)**2 -(x*y+y*z+z*x)
            if a <= n:
                ans[a-1] += 1
for i in range(int(input())):
    print(ans[i])

Buggy python submission (verdict: Time Limit Exceeded):
n = 10**4
k = [0]*10**4
for x in range(1,10):
    for y in range(1,10):
        for z in range(1,10):
            for i in range(n+1):
                if x**2 + y** 2 + z**2 + x*y + y*z + z*x == i:
                    k[i-1] += 1
for i in range(int(input())):
    print(k[i])

Fixed submission:
n = 10**4
ans = [0]*10**4
for x in range(1,100):
    for y in range(1,100):
        for z in range(1,100):
            a = (x+y+z)**2 -(x*y+y*z+z*x)
            if a <= n:
                ans[a-1] += 1
for i in range(int(input())):
    print(ans[i])