Task: Program Execution
Input (English): [3, 171, 40, 118]
Output (English): [10, 514, 20, 59]