Task: Program Execution
Input (English): 1195, r, 8155, 5933, q, R, 8485, 5513, R, j, 1451, 7223, J, D, R, Q, 9113
Output (English): 1195, 18, 8155, 5933, 17, 18, 8485, 5513, 18, 10, 1451, 7223, 10, 4, 18, 17, 9113