Task: Program Execution
Input (English): [[30, 50, 37, 9], [40, 39, 9], [46, -16, 47]]
Output (English): [333, 351, 47]