Task: Program Execution
Input (English): 3, 15, ['B', '4815', 'Z', '6381', '5197', 'a', 'A', 'p', 'M', '2571', 'e', '9847', 'H', 'R', '8553', '2417', 'w', 'u']
Output (English): Z63815197aApM2571e9847HR8553