Where do I include the amount of adjusted tax I paid IRS after the 1st amendment when filing a 2nd amendment

I had to amend my federal and state taxes for a lingering 1099-Div that I didn't realize we were receiving.  After the 1st amendment it showed that I owed $768 back to Fed IRS and an additional $453 to Minnesota IRS.  I filed by mail the 1st amendment and submitted checks for what was owed to both Fed and Minnesota.

 

After I filed by mail the 1st amendment, we received a Schedule K 1120 -IC-DISC that I had to include in my 2023 return due to dividends.  Now I owe Fed IRS an additional $627 and an additional $380 to Minnesota IRS.  Where do I include in my 2nd amendment that I have paid the amount owed from the 1st amendment of $768 to Fed IRS and the $453 to MN IRS.