Task: Program Execution
Input (English): 8, 9, ['3665', '323', 'v', 'S', '2477', '5621', 'V', 'P', '9861', 'F', '4507', 'I', 'a']
Output (English): 9861, P