Task: Program Execution
Input (English): 9941, q, 6255, 9013, r, 5819, 477, 21, 3305, 9457, 5103, k, 2845, 9695, X, B, M, 3495, 9911, 1529, 2705
Output (English): q, r, k, X, B, M