Task: Program Execution
Input (English): 1, 3, ['P', '1287', '2689', '5457', 'P', '5769', '8745', 'f']
Output (English): 3976