Exact Density Functionals for Ground-State Energies