Solved problem 5.

232792560