Task: Program Execution
Input (English): 2, 6, ['W', '4165', 'E', '5299', 'm', 'q', '9087']
Output (English): qm5299E4165