I qualify for the US Armed Forces retirement deduction as I have 28 years served.
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)