Task: Program Execution
Input (English): 2, 5, ['7729', '3259', 'J', 'M', 'Z', 'i', 'H', '6499', '1011']
Output (English): 3259JMZ