Solve problem 142.