Solved problem 024.