Solved problem 35. -Chaz