Task: Program Execution
Input (English): D, 8743, J, 6103, O, v, 7871, 9771, 4029
Output (English): 4, 8743, 10, 6103, 15, 22, 7871, 9771, 4029