Task: Program Execution
Input (English): 2, 3, ['P', 'P', 'F', '1281']
Output (English): F, P