The expansion was a good idea, but I think it would have taken approximately forever. I'm a bit prone to too little working, so let me know if you're still confused. (Note that terms f and g are not equivalent to d or e as the multiplication would have affected them.)
The first digit of a...