function p9=ex332(n)
    for a=1:n-1
        for b=1:n-a
            c=n-b-a;
            if((a*a+b*b)==c*c)
                aa=a;bb=b;cc=c;
            end
        end
    end
    p9=aa*bb*cc;