Simplify c^2d^3(5cd^7-3c^3d^2-4d^3)