Task: Program Execution
Input (English): 5, 8, ['H', '8251', 'Q', '2191', '5425', 'Z', '1777', 'Z', '3239', '4145']
Output (English): Z1777Z5425