Task: Program Execution
Input (English): [118, 1, 195, 107, 164]
Output (English): [59, 4, 586, 322, 82]