Light hadron spectroscopy with two flavors of O(a)-improved dynamical quarks