for my $nnot ( map { $solution[-1] + $_, $solution[-1] - $_ } grep { $availableIntervals[$_] > 0 } (1 .. 11)) {