; (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); or (iv) was, on the date of the enactment of this Act— (I) an alien lawfully admitted for permanent residence; or (II) an alien admitted as a refugee under section 207 of the Immigration and Nationality Act ( 8 U.S.C. 1157 ) or granted asylum under section 208 of such Act ( 8 U.S.C. 1158 ). (B) Waiver (i) In general The Secretary may waive the application of subparagraph (A)(i)(III) or any provision of section 212(a) of the Immigration and Nationality Act ( 8 U.S.C. 1182(a) ) that is not listed in clause (ii) on behalf of an alien for humanitarian purposes, to ensure family unity, or if such a waiver is otherwise in the public interest. Any discretionary authority to waive grounds of inadmissibility under such section 212(a) conferred under any other provision of the Immigration and Nationality Act shall apply equally to aliens seeking blue card status under this section. (ii) Exceptions The discretionary authority under clause (i) may not be used to waive— (I) subparagraph (B), (C), (D)(ii), (E), (G), (H), or (I) of section 212(a)(2) of such Act; (II) section 212(a)(3) of such Act