Task: Program Execution
Input (English): k, 3469, b, P, G, M, 9701, 3239, g, 1831, n, T, 7951, Z, p, 2589, A, 2829
Output (English): 1, 3, 4, 5, 6, 9, 11, 12, 14, 15, 17