Task: Program Execution
Input (English): 7115, 3643, p, 4951, B, w, r, A, 5421, s, F
Output (English): 7115, 3643, 16, 4951, 2, 23, 18, 1, 5421, 19, 6