Solve Problem 4580