; and (ii) enrolls at such institution of higher education— (I) not later than 3 years after such student receives a secondary school diploma or its recognized equivalent; or (II) if such student becomes a member of the armed forces, not later than 3 years after such student is discharged, separated, or released from the Armed Forces. (B) Determination of continued eligibility When an eligible student receiving a Federal Pell Grant pursuant to the commitment under subparagraph (A) enters the student's second academic year, the Secretary shall notify the student— (i) of the upcoming conclusion of the commitment; and (ii) that the student will remain eligible for a Federal Pell Grant under section 401 if the student, at the time of application, is— (I) a member of a household receiving assistance under the supplemental nutrition assistance program established under the Food and Nutrition Act of 2008 ( 7 U.S.C. 2011 et seq.) at the time of such application; or (II) is receiving benefits under— (aa) the supplemental security income program under title XVI of the Social Security Act ( 42 U.S.C. 1381 et seq.); (bb) a State program funded under the temporary assistance for needy families program under part A of title IV of the Social Security Act ( 42 U.S.C. 601 et seq.); (cc) the Medicaid program under title XIX of the Social Security Act ( 42 U.S.C. 1396 et seq.)