Solved problem 46.