Task: Program Execution
Input (English): [[-12, -30, 31], [-8, 2, -40, -3], [5, 16], [-9, 35, -39, 10, -37], [-28, -8]]
Output (English): [360, 640, 16, 10, 224]