Task: Program Execution
Input (English): 6, 6, ['2879', '7075', '3187', '4193', 'D', '5079', '1525']
Output (English): 5079