Task: Program Execution
Input (English): 6, 9, ['E', '3871', 'J', 'M', 'x', '5207', 'N', 'i', 'A', 's']
Output (English): 5207