Exact Kohn-Sham scheme based on perturbation theory.