Task: Program Execution
Input (English): v, 5721, R, 5747, n, 9641, C, X, 4453, p, k, 409, 8615, M, 4689, f, B, Y
Output (English): 22, 5721, 18, 5747, 14, 9641, 3, 24, 4453, 16, 11, 409, 8615, 13, 4689, 6, 2, 25