Task: Program Execution
Input (English): [[-50, -50, 1], [-36, 22, -28, -29, 1], [46, 41, -42], [-28, 35, -41], [-40, 8, 31, -12]]
Output (English): [1, -29, 41, -1435, 31]