I'm assuming you are in North Carolina?
You will use the amount from 2a of Form 1099-R.
"The deduction is only allowed to the extent the payments are included in the taxpayer's adjusted gross income." (NCDOR Military retirement)
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"