Task: Program Execution
Input (English): [[-39, 8, -6], [-38, 29, 46, 31], [-12, 7]]
Output (English): [1872, -1571452, -84]