Task: Program Execution
Input (English): 4, ['1157', 'N', 'J', 'p', '5243', '8191', '8211', 'M', '8709']
Output (English): 5243, 8191, 8211, M, 8709