Indirect roll over do I p

I recently requested a withdrawal from a 401k with an old employer, forgetting to consider early withdrawal penalties. Some of the funds were pre-tax (employer contributions) and some were post-tax/Roth (my contributions). I received a check with some federal income tax withheld (at 23.58%) and some as Roth 401k federal income tax withheld (20%). 

I am still in the 60-day period, and I'd like to put the money back into a Roth IRA; the question is, how much do I put in to avoid the 10% penalty and minimize taxes paid?