Task: Program Execution
Input (English): 3, 5, ['U', 'V', 'H', 'q', 'm', '5155', 'X', '5185']
Output (English): mqH