The optimal number of deaths