Task: Program Execution
Input (English): 3, 5, ['2985', 'O', 'n', 'X', '3951', 'U', 'V']
Output (English): nX3951