Measurement of the branching fractions for inclusive B- and B0-bar decays to flavor-tagged D, Ds and Lambda_c