Task: Program Execution
Input (English): [[31, 31, -36, 40], [8, -50, 30, -31, 9], [-50, -17]]
Output (English): [961, -279, -17]