Task: Program Execution
Input (English): Q, 8399, e, A, 3891, 9413, x, 2671, d, 1545, 8357, 2749, 329, a, S
Output (English): 1, 3, 4, 7, 9, 14, 15