Buggy python submission (verdict: Runtime Error):
n = int(input())
ans = [0 for i in range(1001)]
for x in range(1,100):
    for y in range(1,100):
        for z in range(1,100):
            if x*x + y*y + z*z + x*y + x*z + y*z < n:
                ans[x*x + y*y + z*z + x*y + x*z + y*z] += 1
            else:
              break
for i in range(1,n+1):
    print(ans[i])

Fixed submission:
n = int(input())
ans = [0 for i in range(10001)]
for x in range(1,100):
    for y in range(1,100):
        for z in range(1,100):
            if x*x + y*y + z*z + x*y + x*z + y*z <= 10000:
                ans[x*x + y*y + z*z + x*y + x*z + y*z] += 1
            else:
              break
for i in range(1,n+1):
    print(ans[i])

Buggy python submission (verdict: Runtime Error):
n = int(input())
ans = [0 for i in range(1001)]
for x in range(1,100):
    for y in range(1,100):
        for z in range(1,100):
            if (x*x + y*y + z*z + x*y + x*z + y*z) <= 1000:
                ans[x*x + y*y + z*z + x*y + x*z + y*z] += 1
for i in range(1,n+1):
    print(ans[i])

Fixed submission:
n = int(input())
ans = [0 for i in range(10001)]
for x in range(1,100):
    for y in range(1,100):
        for z in range(1,100):
            if x*x + y*y + z*z + x*y + x*z + y*z <= 10000:
                ans[x*x + y*y + z*z + x*y + x*z + y*z] += 1
            else:
              break
for i in range(1,n+1):
    print(ans[i])

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

Fixed submission:
n = int(input())
ans = [0 for i in range(10001)]
for x in range(1,100):
    for y in range(1,100):
        for z in range(1,100):
            if x*x + y*y + z*z + x*y + x*z + y*z <= 10000:
                ans[x*x + y*y + z*z + x*y + x*z + y*z] += 1
            else:
              break
for i in range(1,n+1):
    print(ans[i])

Buggy python submission (verdict: Runtime Error):
n = int(input())
ans = [0 for i in range(1001)]
for x in range(1,100):
    for y in range(1,100):
        for z in range(1,100):
            if (x*(x+y+z) + y*(y+z) + z*z) <= 1000:
                ans[(x*(x+y+z) + y*(y+z) + z*z)-1] += 1
for i in range(n):
    print(ans[i])

Fixed submission:
n = int(input())
ans = [0 for i in range(10001)]
for x in range(1,100):
    for y in range(1,100):
        for z in range(1,100):
            if x*x + y*y + z*z + x*y + x*z + y*z <= 10000:
                ans[x*x + y*y + z*z + x*y + x*z + y*z] += 1
            else:
              break
for i in range(1,n+1):
    print(ans[i])

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

Fixed submission:
n = int(input())
ans = [0 for i in range(10001)]
for x in range(1,100):
    for y in range(1,100):
        for z in range(1,100):
            if x*x + y*y + z*z + x*y + x*z + y*z <= 10000:
                ans[x*x + y*y + z*z + x*y + x*z + y*z] += 1
            else:
              break
for i in range(1,n+1):
    print(ans[i])