Task: Program Execution
Input (English): 2, 10, ['Q', 'c', '5523', '6229', '6825', '4227', '6975', 'X', 'i', '8567', '8303', 'X', '4847', '149', '5775']
Output (English): 8567, i, X, 6975, 4227, 6825, 6229, 5523, c