Task: Program Execution
Input (English): [[47, 39, -18, 4, 18], [38, 46], [-2, -10, 44], [-19, -3, 27, -40]]
Output (English): [-1296, 1748, 880, -40]