When the expression 3x^2 - 8x + 7 is written in the form a(x+d)^2+e, where a, d, and e are constants, then what is the sum a+d+e?