Task: Program Execution
Input (English): 2, 4, ['9651', 'R', 'g', '9531', '9957', '6635', 'x', '1329']
Output (English): 9531