Task: Program Execution
Input (English): [[-5, 21, -40], [-32, -49, 16, 21], [40, 46]]
Output (English): [4200, 526848, 1840]