for m in range(1,1000):
    for n in range(m+1,1000):
        c=1000-m-n
        if c**2==(m**2+n**2):
            print('The individual numbers a,b,c respectively are',m,n,c,'the product of abc is',m*n*c)
