Iterated distillation and amplification