; or (B) knowingly makes, with the intent to influence, any communication to or appearance before any officer or employee of any department, agency, Member, officer, or employee of either House of Congress or any employee of any other legislative office of the Congress, on behalf of any other person (except the United States or the District of Columbia) for compensation, in connection with any matter on which such person seeks official action by any Member, officer, or employee of either House of Congress, or any employee or officer of any department or agency, shall be punished as provided in section 216 of this title. (2) Other officials (A) In general Any officer or employee in the executive or legislative branch of the United States who, during the time period described in subparagraph (B) makes, with the intent to influence, any communication to or appearance before their former office, agency, or House of Congress, for compensation, shall be punished as provided in section 216 of this title. (B) Time period The time period described in this subparagraph is as follows: (i) With respect to an officer or employee of the legislative branch, 2 years after the termination of service or employment as an officer or employee. (ii) With respect to an officer or employee of the executive branch, the later of— (I) the date on which a President other than the President serving during the employment of the officer or employee takes office; and (II) the date on which the 2-year period beginning on the date of the termination of service or employment as an officer or employee expires. (iii) With respect to an officer or employee of the executive branch of the United States who becomes a corporate lobbyist, the later of— (I) the date on which a President other than the President serving during the employment of the officer or employee takes office