X-12-ARIMA does that for you, and it even suggest the best fit (p, d, q) (P, D, Q) model for you.
After the adjustments, you will need to test the data again to make sure the adjustment is adequate and appropriate.