S-Corp Employer 401(k) Contribution

I am an owner and only employee in my s-crop.  As an employer, I contribute 25% of  my salary compensation (W2) into my solo 401k account. Should this 401K contribution be input in 1120S Line17 (Pension, Profit-Sharing, etc., Plans)?   Or another possible place is in 1040 as I "pass-through" from K1,  I input this employer's 401K contribution in 1040 Schedule 1 line 15 (Self-Employed SEP, SIMPLE, and
Qualified Plans)?  Thank you