Task: Program Execution
Input (English): [[-47, -17, -22, -34], [11, 27, 39, -38], [31, -37], [-40, -5, -23]]
Output (English): [597652, -440154, -1147, -4600]