Task: Program Execution
Input (English): 2, 2, ['X', 'A', '3915', '9685', '9577', '9633', 'K', '4351', '9521', 'b', '673', '8089', 'p', '5165']
Output (English): A, 9685, 9633, 4351, b, 8089, 5165