; (II) an aggravated felony (as defined in section 101(a)(43) of the Immigration and Nationality Act ( 8 U.S.C. 1101(a)(43) ) at the time of the conviction); (III) 3 or more misdemeanor offenses (other than minor traffic offenses or State or local offenses for which an essential element was the alien’s immigration status, or violations of the Immigration and Nationality Act) if the alien was convicted on different dates for each of the 3 offenses; (IV) any offense under foreign law, except for a purely political offense, which, if the offense had been committed in the United States, would render the alien inadmissible under section 212(a) of the Immigration and Nationality Act ( 8 U.S.C. 1182(a) ), excluding the paragraphs set forth in clause (ii), or removable under section 237(a) of such Act ( 8 U.S.C. 1227(a) ), except as provided in paragraph (3) of such section 237(a); or (V) unlawful voting (as defined in section 237(a)(6) of the Immigration and Nationality Act ( 8 U.S.C. 1227(a)(6) )); (ii) is inadmissible under section 212(a) of the Immigration and Nationality Act ( 8 U.S.C. 1182(a) ), except that in determining an alien’s inadmissibility— (I) paragraphs (4), (5), (7), and (9)(B) of such section 212(a) shall not apply; (II) subparagraphs (A), (C), (D), (F), and (G) of such section 212(a)(6) and paragraphs (9)(C) and (10)(B) of such section 212(a) shall not apply unless based on the act of unlawfully entering the United States after the date of the enactment of this Act; and (III) paragraphs (6)(B) and (9)(A) of such section 212(a) shall not apply unless the relevant conduct began on or after the date on which the alien files an application for registered provisional immigrant status under this section; (iii) is an alien who the Secretary knows or has reasonable grounds to believe, is engaged in or is likely to engage after entry in any terrorist activity (as defined in section 212(a)(3)(B)(iv) of such Act)