Task: Program Execution
Input (English): [[18, 19, 9, 22], [-42, -50, -6, 3], [13, 39]]
Output (English): [171, 3, 507]