Task: Program Execution
Input (English): 3, 4, ['F', '7341', 'P', '3315']
Output (English): 3315