Optimal Response to a Transitory Demographic Shock in Social Security Financing