; (F) who was convicted of 3 or more felonies of any kind, the alien shall be fined under such title, imprisoned not more than 25 years, or both; and (G) who was convicted, before the alien was subject to removal or departure or after such removal or departure, for murder, rape, kidnapping, or a felony offense described in chapter 77 (relating to peonage and slavery) or 113B (relating to terrorism) of such title, the alien shall be fined under such title, imprisoned not more than 25 years, or both; (c) Mandatory minimum criminal penalty for reentry of certain removed aliens Notwithstanding the penalties under subsections (a) and (b), an alien described in subsection (a)— (1) who was convicted, before the alien was subject to removal or departure, of an aggravated felony; or (2) who was convicted at least 2 times before such removal or departure of illegal reentry under this section, shall be imprisoned not less than 5 years and not more than 20 years, and may, in addition, be fined under title 18, United States Code. (d) Proof of prior convictions The prior convictions described in subsection (b) are elements of the crimes described, and the penalties in that subsection shall apply only in cases in which the conviction or convictions that form the basis for the additional penalty are— (1) alleged in the indictment or information; and (2) proven beyond a reasonable doubt at trial; or (3) admitted by the defendant. (e) Affirmative defenses It shall be an affirmative defense to a violation of this section that— (1) prior to the alleged violation, the alien had sought and received the express consent of the Secretary of Homeland Security to reapply for admission into the United States; or (2) with respect to an alien previously denied admission and removed, the alien— (A) was not required to obtain such advance consent under the Immigration and Nationality Act or any prior Act