Deductions & credits

I was taxed for the whole year of 2016 and had my federal and state taxes withheld. In order to get it back, like others have stated, I have to report the amount on line 21 of the 1040 form. But what amount do i report??-- The amount of federal income tax withheld,the amount of state income tax withheld, or both these amounts?? sorry I am confused.