Task: Program Execution
Input (English): 2, 3, ['3091', 'P', 'F', '7605', '9379']
Output (English): FP