; or (ii) the 6-month period beginning on the date on which such country became a program country. (B) Eligibility to rejoin A program country whose participation in the program is terminated pursuant to subparagraph (A) may be permitted to rejoin the program by producing evidence that the country has come into compliance and continuously complied with subparagraphs (D) and (F) of paragraph (2) for a period, as determined by the Secretary of Homeland Security, that is at least as long as the longer of— (i) the period during which the country was out of compliance with such subparagraphs; or (ii) the most recent 3-month period. .