Solved problem 507.