; or (ii) hospital-specific approved FTE resident amounts under subsection (h). (4) Allocation of payments In providing for payments under this subsection, the Secretary shall provide for an allocation of such payments between parts A and part B (and the trust funds established under the respective parts) as reasonably reflects the proportion of such costs associated with the provision of services under each respective part. (5) Eligibility for payment (A) In general An applicable hospital shall be eligible for payment of the elective rural sustainability per resident payment amount under this subsection for time spent by a resident training in a rural training location if the following requirements are met: (i) The resident spends the equivalent of at least 8 weeks over the course of their training in a rural training location. (ii) The hospital pays the salary and benefits of the resident for the time spent training in a rural training location. (B) Treatment of time spent in rural tracks or integrated rural tracks An applicable hospital shall be eligible for payment of the elective rural sustainability per resident payment amount under this subsection for all time spent by residents in an approved medical residency program (or separately defined track within a program) that provides more than 50 percent of the total residency training time in rural training locations, regardless of where the training occurs and regardless of specialty. (6) Determination of full-time-equivalent residents The determination of full-time-equivalent residents for purposes of this subsection shall be made in the same manner as the determination of full-time-equivalent residents under subsection (h)(4), but not taking into account the limitation under subparagraph (F) of such subsection. (7) Definitions In this subsection: (A) Applicable hospital The term applicable hospital means a hospital, critical access hospital, sole community hospital (as defined in subsection (d)(5)(D)(iii)), or rural emergency hospital (as defined in section