Task: Program Execution
Input (English): r, J, 6855, 6989, E, 9087, G, 1469
Output (English): 18, 10, 6855, 6989, 5, 9087, 7, 1469