Apply different value depending of branch structure

Hi, not sure how to specifically refer to my problem but here’s the example.

I have a list that have this structure:

I want to divide the curves with this logic:
all the curves in {0;?;?;?} will be by 2 and the ones in {1:?;?;?} by 3.

The idea is to have the possibility of having more that this 2 paths, so, the idea is to make a list with the division numbers grafted and that the first brach refers to {0;?;?;?}, the 2nd to {1:?;?;?} and so on.

Hope its clear.

use path mapper like this