; or (III) a rural area (as defined in subsection (d)(2)(D)(ii)). (iii) In the case that the application of clauses (i) and (ii) does not result in the distribution of all positions made available under this paragraph, the Secretary shall make any positions that remain undistributed after the application of such clauses available to hospitals that establish a medical residency program that is sponsored by, or affiliated with, a medical school that was first accredited during the cost reporting period prior to the cost reporting period with respect to which such application applies. (E) Limitation A hospital may not receive more than 75 full-time equivalent additional residency positions under this paragraph. (F) Application of per resident amounts for primary care and nonprimary care With respect to additional residency positions in a hospital attributable to the increase provided under this paragraph, the approved FTE per resident amounts are deemed to be equal to the hospital per resident amounts for primary care and nonprimary care computed under paragraph (2)(D) for that hospital. (G) Definitions In this paragraph: (i) Reference resident level The term reference resident level means, with respect to a hospital, the highest resident level for any of the 3 most recent cost reporting periods (ending before the date of the enactment of this paragraph) of the hospital for which a cost report has been settled (or, if not, submitted (subject to audit)), as determined by the Secretary. (ii) Resident level The term resident level has the meaning given such term in paragraph (7)(C)(i). (iii) Otherwise applicable resident limit The term otherwise applicable resident limit means, with respect to a hospital, the limit otherwise applicable under subparagraphs (F)(i) and (H) of paragraph (4) on the resident level for the hospital determined without regard to this paragraph but taking into account paragraph (7)(A). (iv) Applicable residency training program (I) In general The term applicable residency training program means