Task: Program Execution
Input (English): B, S, 303, O, 4063, 9103, 7879, 7081, R, k, 1489, a, 9175, R, 5709, Q, 8553
Output (English): 2, 19, 303, 15, 4063, 9103, 7879, 7081, 18, 11, 1489, 1, 9175, 18, 5709, 17, 8553