Task: Program Execution
Input (English): 4, 6, ['6429', '3071', 'P', 'e', 'P', '1309', '5895']
Output (English): 1309