Solved problem 51.