Task: Program Execution
Input (English): A, F, 9423, i, f, G, H, A, 2731, M, q, 1159, 9285, 8439, Q, M, Q, H, n
Output (English): A, F, i, f, G, H, A, M, q, Q, M, Q, H, n