Buggy python submission (verdict: Time Limit Exceeded):
N=int(input())
import math

for i in range(1,N+1):
    ans=0
    for x in range(1,33):
        x2=x*x
        for y in range(1,x+1):
            a=-(3*(x2)+3*(y*y)+2*x*y)/4+i
            if a>0:
                b=(math.sqrt(a)-(x+y)/2)
                if b>0 and b%1==0.0:
                    if x==y:
                        ans+=1
                    else:
                        ans+=2

    print(ans)


Fixed submission:
N=int(input())
li=[0]*N
for x in range(1,101):
    for y in range(1,101):
        for z in range(1,101):
            temp=x**2+y**2+z**2+x*y+y*z+z*x
            if temp<=N:
                li[temp-1]+=1
for i in range(N):
    print(li[i])

Buggy python submission (verdict: Time Limit Exceeded):
N=int(input())
import math

for i in range(1,N+1):
    ans=0
    for x in range(1,33):
        x2=x*x
        for y in range(1,x+1):
                if x2+y^2<1000:
                    a=-(3*(x2)+3*(y*y)+2*x*y)/4+i
                    if a>0:
                        b=(math.sqrt(a)-(x+y)/2)
                        if b>0 and b%1==0.0:
                            if x==y:
                                ans+=1
                            else:
                                ans+=2

    print(ans)



Fixed submission:
N=int(input())
li=[0]*N
for x in range(1,101):
    for y in range(1,101):
        for z in range(1,101):
            temp=x**2+y**2+z**2+x*y+y*z+z*x
            if temp<=N:
                li[temp-1]+=1
for i in range(N):
    print(li[i])

Buggy python submission (verdict: Time Limit Exceeded):
N=int(input())
import math

for i in range(1,N+1):
    ans=0
    for x in range(1,33):
        x2=x*x
        for y in range(1,33):
            if x>=y:
                if x^2+y^2<1000:
                    a=-(3*(x2)+3*(y*y)+2*x*y)/4+i
                    if a>0:
                        b=(math.sqrt(a)-(x+y)/2)
                        if b>0 and b%1==0.0:
                            if x==y:
                                ans+=1
                            else:
                                ans+=2

    print(ans)


Fixed submission:
N=int(input())
li=[0]*N
for x in range(1,101):
    for y in range(1,101):
        for z in range(1,101):
            temp=x**2+y**2+z**2+x*y+y*z+z*x
            if temp<=N:
                li[temp-1]+=1
for i in range(N):
    print(li[i])

Buggy python submission (verdict: Time Limit Exceeded):
N=int(input())
import math

for i in range(1,N+1):
    ans=0
    for x in range(1,33):
        for y in range(1,33):
            if x>=y:
                if x^2+y^2<1000:
                    a=-(3*(x*x)+3*(y*y)+2*x*y)/4+i
                    if a>0:
                        b=(math.sqrt(a)-(x+y)/2)
                        if b>0 and b%1==0.0:
                            if x==y:
                                ans+=1
                            else:
                                ans+=2

    print(ans)



Fixed submission:
N=int(input())
li=[0]*N
for x in range(1,101):
    for y in range(1,101):
        for z in range(1,101):
            temp=x**2+y**2+z**2+x*y+y*z+z*x
            if temp<=N:
                li[temp-1]+=1
for i in range(N):
    print(li[i])

Buggy python submission (verdict: Time Limit Exceeded):
N=int(input())
import math
for i in range(1,N+1):
    ans=0
    for x in range(1,33):
        for y in range(1,33):
            if x^2+y^2<1000:
                a=-(3*(x*x)+3*(y*y)+2*x*y)/4+i
                if a>0:
                    b=(math.sqrt(a)-(x+y)/2)
                    if b>0 and b%1==0.0:
                        ans+=1

    print(ans)



Fixed submission:
N=int(input())
li=[0]*N
for x in range(1,101):
    for y in range(1,101):
        for z in range(1,101):
            temp=x**2+y**2+z**2+x*y+y*z+z*x
            if temp<=N:
                li[temp-1]+=1
for i in range(N):
    print(li[i])

Buggy python submission (verdict: Time Limit Exceeded):
N=int(input())
import math
for i in range(1,N+1):
    ans=0
    for x in range(1,33):
        for y in range(1,33):
            a=-(3*(x*x)+3*(y*y)+2*x*y)/4+i
            if a>0:
                b=(math.sqrt(a)-(x+y)/2)
                if b>0 and b%1==0.0:
                    ans+=1

    print(ans)



Fixed submission:
N=int(input())
li=[0]*N
for x in range(1,101):
    for y in range(1,101):
        for z in range(1,101):
            temp=x**2+y**2+z**2+x*y+y*z+z*x
            if temp<=N:
                li[temp-1]+=1
for i in range(N):
    print(li[i])

Buggy python submission (verdict: Time Limit Exceeded):
N=int(input())
import math
for i in range(1,N+1):
    ans=0
    for x in range(1,35):
        for y in range(1,35):
            a=-(3*(x*x)+3*(y*y)+2*x*y)/4+i
            if a>0:
                b=(math.sqrt(a)-(x+y)/2)
                if b>0 and b%1==0.0:
                    ans+=1

    print(ans)



Fixed submission:
N=int(input())
li=[0]*N
for x in range(1,101):
    for y in range(1,101):
        for z in range(1,101):
            temp=x**2+y**2+z**2+x*y+y*z+z*x
            if temp<=N:
                li[temp-1]+=1
for i in range(N):
    print(li[i])