Solved problem 1.

233168