; of which $402,161,000, to remain available for obligation until September 30, 2019, shall be for procurement; and of which $2,102,107,000, to remain available for obligation until September 30, 2018, shall be for research, development, test and evaluation: Provided , That, notwithstanding any other provision of law, of the amount made available under this heading for research, development, test and evaluation, not less than $8,000,000 shall be available for HIV prevention educational activities undertaken in connection with United States military training, exercises, and humanitarian assistance activities conducted primarily in African nations: Provided further , That of the funds provided under this heading for research, development, test and evaluation, not less than $1,014,600,000 shall be made available to the United States Army Medical Research and Materiel Command to carry out the congressionally directed medical research programs. Chemical agents and munitions destruction, defense For expenses, not otherwise provided for, necessary for the destruction of the United States stockpile of lethal chemical agents and munitions in accordance with the provisions of section 1412 of the Department of Defense Authorization Act, 1986 ( 50 U.S.C. 1521 ), and for the destruction of other chemical warfare materials that are not in the chemical weapon stockpile, $523,726,000, of which $119,985,000 shall be for operation and maintenance, of which no less than $49,533,000 shall be for the Chemical Stockpile Emergency Preparedness Program, consisting of $20,368,000 for activities on military installations and $29,165,000, to remain available until September 30, 2018, to assist State and local governments, and of which not more than $13,700,000, to remain available until September 30, 2018, shall be for the destruction of eight United States-origin chemical munitions in the Republic of Panama, to the extent authorized by law