Can someone explain the IRA contributions more clearly?

If I contributed $4K to a Roth 15 years ago, withdrew $5K 5 years ago and then took out the remaining earned balance in 2021 closing the account, what am I supposed to enter as IRA contributions prior to 2021?