Task: Program Execution
Input (English): 7, 10, ['2721', '1023', '2363', 'J', 'J', '5867', 'x', 'w', '4247', 'i', '1193']
Output (English): 4247