Task: Program Execution
Input (English): 4, 4, ['J', 'V', 'd', '2723', '7757', '5307', 'z', 'b']
Output (English): 2723