The substitute is organized as three fasts during Hajj and seven after completion of Hajj, totaling ten fasts.
The two portions are not interchangeable. Simply counting ten fasts without regard to the specified timing of the initial three would miss the explicit distinction set out in the preceding clauses.