Solved problem 187.