Solved problem 47.