Task: Program Execution
Input (English): r, O, 4945, J, 5021, 1003, 7635, B, g, 4803, 3603, V, 7909, A, 4743
Output (English): 18, 15, 4945, 10, 5021, 1003, 7635, 2, 7, 4803, 3603, 22, 7909, 1, 4743