529 super funding

Hi - I live in New York State. In 2024, I superfunded a 529 last year (I.e., contributed more than $5K although only $5K per year is deductible on state taxes). When entering into TurboTax (desktop) should I enter $5,000 as the amount of the contribution? Or should I enter the full $20,000?

 

If only entering $5000 for 2024 (even though I contributed $20000), then when I do my 2025 NY return next year, should I enter $5000 again, and do the same for each following year until I've used up the $20,000 contribution?

 

Thank you!