Task: Program Execution
Input (English): 3, ['1997', '5573', '3771', '5043', '501', '1709', '699', 'M']
Output (English): 1997, 5043, 699