Task: Program Execution
Input (English): 3, ['1531', 'M', '851', '945', 'H', '2509']
Output (English): 1531, 945