Retirement tax questions

I know this an old thread but my question refers to the same currently.  I opened a Roth 20 years ago contributing $4K and never contributed again.  Obviously it grew over the years and I took out $5K in 2017 and closed it in 2021 taking out $4,600.  What do I enter as prior contributions?