Task: Program Execution
Input (English): 5, 5, ['v', '5', 'P', 'r', '2471', 'S', 'I', '673', 'u', 'F']
Output (English): 2471