The third problem's solution.