Dealing with an excess Roth IRA contribution that lost value before being withdrawn.

I had an excess contribution in 2021 which I have worked to get withdrawn. The account lost value between the deposit and withdrawl so the amount I got back was less than what I deposited.

When TurboTax asks me for the excess amount withdrawn, do I enter what I originally contributed or what was returned to me after the losses?

(I'm worried if I enter what I was actually returned it won't calculate that the entire excess contribution was undone.)

Thank you!