Task: Program Execution
Input (English): 5, 5, ['651', 's', '6891', 'h', '3517', 'R', '381']
Output (English): 3517