Task: Program Execution
Input (English): A, 5765, C, I, J, r, o
Output (English): 1, 5765, 3, 9, 10, 18, 15