Task: Program Execution
Input (English): 3, ['5811', 'J', '5899', '7361', 'q', 'm']
Output (English): 5811, 7361