1099-B Capital Gain With $ in Box 1f Seems Wrong

Here's a fun one.  Try it yourself.  A cd that I bought in the secondary market matured in 2020.  I held in for 2 ½ years.  The statement from the bank shows a capital gain of $1000.  There are 2 ways to enter items on 1099-B.  You can enter the summary of all capital gains, or you can enter them individually.  Given $40,000 proceeds, $39,000 cost, and $1000 in box 1f (Accrued Market Discount), entering the values as a summary and as an individual entry gives 2 different results, and neither matches what the bank says ($1000 capital gain).  Any help or sympathy would be appreciated.