D=16p4r-4p3q2-128p2r2+144pq2r-27q4+256r3.