; and (ii) the National Institutes of Health organized under title IV, to be used in accordance with paragraph (4)(B). (B) Distribution ratio between agencies The amount that the Secretary distributes to an agency under subparagraph (A) during a fiscal year shall bear the same relation to the total amount appropriated under paragraph (2)(F)(iii) for such fiscal year as the amount of discretionary funds appropriated to such agency for such fiscal year bears to the total amount of discretionary funding appropriated to both agencies listed in subparagraph (A) for such fiscal year. (C) Ensuring stable congressional investments in medical research (i) In general Supplemental payments collected in accordance with paragraph (2) shall not be distributed under subparagraph (A) for a fiscal year unless appropriations to both of the agencies listed in such subparagraph for the fiscal year are equal to or greater than appropriations to such agencies for the prior fiscal year. (ii) Delayed distribution If, in accordance with clause (i), the Secretary does not distribute payments collected in accordance with paragraph (2) during any portion of a fiscal year, and, at a later date in such fiscal year, the appropriations to the agencies listed in subparagraph (A) become equal to or greater than the amount of appropriations for the prior fiscal year, the Secretary may distribute such payment at any time in such fiscal year. (D) Considerations In determining amounts appropriated for purposes of subparagraphs (B) and (C)— (i) the Secretary shall not consider any amounts appropriated in accordance with paragraph (2)(F)(iii)