Task: Program Execution
Input (English): 7317, N, 9231, 2661, m, 5039, B, 2429, b, 4637, 3163, 4623, a
Output (English): 1, 3, 4, 6, 8, 10, 11, 12