; (ii) by striking (2) ; (iii) by striking (3) ; and (iv) by striking shall, for and all that follows and inserting the following: “shall— (1) for the first commission of any such offense, be fined in accordance with subsection (b), imprisoned not more than 6 months, or both; and (2) for a subsequent commission of any such offense, be fined in accordance with subsection (b), imprisoned not more than 2 years, or both. ; and (B) in subsection (b)— (i) by inserting (1) before Any alien ; (ii) by striking civil penalty of and all that follows through paragraph (2) and inserting civil penalty in an amount equal to not less than $3,000 and not more than $10,000. ; and (iii) in the undesignated matter at the end, by inserting (2) before Civil penalties ; and (2) in section 276(a) ( 8 U.S.C. 1326(a) ), in the undesignated matter following paragraph (2)(B), by striking shall be fined under title 18, United States Code, or and inserting shall be subject to a civil penalty in an amount equal to not less than $3,000 and not more than $10,000, . (b) Overstay Section 222(g) of the Immigration and Nationality Act ( 8 U.S.C. 1202(g) ) is amended by adding at the end the following: (3) An alien described in paragraph (1) shall be subject to a civil penalty in an amount equal to $50 multiplied by the number of months that the alien remained in the United States beyond the alien’s authorized period of stay. .