Task: Program Execution
Input (English): j, 819, 4963, x, 5401, K, Q, 8837, x, 2147, w, 9659, 1703, y, 8293, 391, 5367
Output (English): 10, 819, 4963, 24, 5401, 11, 17, 8837, 24, 2147, 23, 9659, 1703, 25, 8293, 391, 5367