Solved problem 42.