IRS publication 721, part II Rules for Retirees, states,
"Deduction of unrecovered cost.
If your annuity starting date is after July 1, 1986, and the cost of your annuity hasn't been fully recovered at your (or the survivor annuitant's) death, a deduction is allowed for the unrecovered cost. The deduction is claimed on your (or your survivor's) final tax return as an "Other Itemized Deduction." If your annuity starting date is before July 2, 1986, no tax benefit is allowed for any unrecovered cost at death."