Task: Program Execution
Input (English): 2, ['6307', 'd', 'Z', 'Q']
Output (English): 6307, d