IRA early withdrawal penalty exception for education

If I had $25,000 in college expenses and $10,000 in scholarship, is only $15,000 allowable toward and early IRA withdrawal exception, or is the entire $25,000 allowable?