Solved Problem 40.