nonnegative partial sum

Input interpretation

nonnegative partial sum