Task: Program Execution
Input (English): [[5, 14, -39, 6, 31], [-49, -15, 15], [7, 35], [31, 49]]
Output (English): [84, 0, 0, 0]