Task: Program Execution
Input (English): 8529, C, 9939, Q, K, N, a, 5339, Q, 4967, 7507
Output (English): C, Q, K, N, a, Q