Task: Program Execution
Input (English): 2, ['2359', 'M', '6643', '8785', '3171', '5217']
Output (English): 2359, M, 6643, 8785