The following algorithm gives a correct answer:

488
+ 65
5^1 5^1 3

Explain why the algorithm works.