Let E = sum of digits of D. It follows from the hint that A = E (mod 9) The sum of the digits of D is 1.