Task: Program Execution
Input (English): 6391, M, Q, T, B, 7663, 9047, 751, 3529, O, 443, Y
Output (English): M, Q, T, B, O, Y, 6391, 7663, 9047, 751, 3529, 443