I withdrew all the money from my Roth IRA and received a 1099R showing the total distribution. Where do I enter the contributions made so I am not taxed again?

I am under 59 years old. And I've had this Roth IRA for more than 5 years, transferring money between funds within the Roth IRA during this time. I understand the 10% early withdrawal penalty. The total distribution box show, for example, 10k of which only 3k is earnings. I do not see where to enter the contributions I've made in prior years so I am not taxed the 7k again.