Task: Program Execution
Input (English): 5, 5, ['Z', '873', 'V', 'F', '7741', '2623']
Output (English): 7741