Task: Program Execution
Input (English): 5, 5, ['2167', '3597', 'o', 'N', '4223']
Output (English): 4223