Task: Program Execution
Input (English): q, 267, 6103, N, 4225, A, C, B, 4815
Output (English): q, N, A, C, B