; (2) in paragraph (5), by striking , 2017, or 2018 and inserting or 2017 ; (3) in paragraph (7)— (A) in subparagraph (A), by striking and ending with fiscal year 2017 ; (B) in subparagraph (B), in the matter preceding clause (i), by inserting (or, in the case of fiscal year 2018, by not later than the date that is 60 days after the date of the enactment of the KIDS Act) after before the August 31 preceding the beginning of the fiscal year ; and (C) in the matter following subparagraph (B), by striking or fiscal year 2016 and inserting fiscal year 2016, or any succeeding even-numbered fiscal year ; (4) in paragraph (9), by striking , 2017, or 2018 and inserting or 2017 ; and (5) by striking paragraph (10). (c) Extension of the Child Enrollment Contingency Fund Section 2104(n) of the Social Security Act ( 42 U.S.C. 1397dd(n) ) is amended— (1) in paragraph (2)— (A) in subparagraph (A)(ii), by striking 2010, 2011, 2012, 2013, 2014, and 2016 and inserting 2010 through 2014, 2016, 2018, and each subsequent fiscal year ; and (B) in subparagraph (B), by striking 2010, 2011, 2012, 2013, 2014, and 2016 and inserting 2010 through 2014, 2016, 2018, and each subsequent fiscal year ; and (2) in paragraph (3)(A), in the matter preceding clause (i), by striking or a semi-annual allotment period for fiscal year 2015 or 2017 and inserting or in fiscal year 2018 or any subsequent fiscal year (or a semi-annual allotment period for fiscal year 2015, or 2017) . (d) Extension of qualifying states option (1) In general Section 2105(g)(4) of the Social Security Act ( 42 U.S.C. 1397ee(g)(4) ) is amended— (A) in the heading, by striking through 2017 and inserting and subsequent fiscal years