; and (2) to carry out voting system security improvements described in section 297B with respect to the regularly scheduled general elections for Federal office held in November 2018 and each succeeding election for Federal office. (b) Amount of grant The amount of a grant made to a State under this section shall be such amount as the Commission determines to be appropriate, except that such amount may not be less than the product of $1 and the average of the number of individuals who cast votes in any of the two most recent regularly scheduled general elections for Federal office held in the State. (c) Pro rata reductions If the amount of funds appropriated for grants under this part is insufficient to ensure that each State receives the amount of the grant calculated under subsection (b), the Commission shall make such pro rata reductions in such amounts as may be necessary to ensure that the entire amount appropriated under this part is distributed to the States. 297A. Qualified paper ballot voting systems (a) Use of funds To obtain systems A State may use a grant under this part— (1) to replace a voting system which is not a qualified paper ballot voting systems with a qualified paper ballot voting system