Measurement of the branching fractions for inclusive B- and B¯0 decays to flavor-tagged D, Ds, and Λc