; (B) with the highest numbers or percentages of students counted under section 1124(c) of the Elementary and Secondary Education Act of 1965 ( 20 U.S.C. 6333(c) ); and (C) with the most limited capacity to raise funds for the long-term improvement of public school facilities, as determined by an assessment of— (i) the current and historic ability of the agency to raise funds for construction, renovation, modernization, and major repair projects for schools; (ii) whether the agency has been able to issue bonds or receive other funds to support construction projects, including— (I) qualified school construction bonds under section 54F of the Internal Revenue Code of 1986; (II) qualified zone academy bonds under section 1397E of the Internal Revenue Code of 1986; (III) school infrastructure bonds under section 54BB of the Internal Revenue Code of 1986 (as added by section 201); and (IV) funds made available under 7007 of the Elementary and Secondary Education Act of 1965 ( 20 U.S.C. 7707 ); and (iii) the bond rating of the agency; and (2) shall agree to prioritize the improvement of the facilities of public schools that serve the highest percentages of students who are eligible for a free or reduced price lunch under the Richard B. Russell National School Lunch Act ( 42 U.S.C. 1751 et seq.) (which, in the case of a high school, may be calculated using comparable data from the schools that feed into the high school), as compared to other public schools in the jurisdiction of the agency. (c) Priority of grants In awarding grants under this section, the State shall give priority to local educational agencies that— (1) demonstrate the greatest need for such a grant, as determined by a comparison of the factors described in subsection (b)