param n:=4; # number of pieces param l:= 1 2 2 3 3 5 4 6; param Length:=10; # length of the roll param d:= 1 3 2 4 3 3 4 4;