def METHOD_NAME(sequence, sample_ratios):
    r, s = [], 0
    for e, ratio in zip(sequence, sample_ratios):
        curr_len = int(ratio * len(e))
        r.append(curr_len + s)
        s += curr_len
    return r