Task: Program Execution
Input (English): 2, ['D', 'U', 'D', 'I', 'q', 'W', '4509', '9247']
Output (English): D, U