Solved Problem 39.