A debt security is transferred from the held-for-trading portfolio to the available-for-sale portfolio. At the transfer date, the security's cost exceeds its fair value. What amount is used at the transfer date to record the security in the available-for-sale portfolio