Solve problem #14.