Task: Program Execution
Input (English): K, A, 3543, 6659, 5815, n, 3145, Z, 3049, k, w, 3341, M, 4379, 1657, 1401, 7443, A, 1741, f, 5347, h, r
Output (English): 1, 2, 6, 8, 10, 11, 13, 18, 20, 22, 23