Task: Program Execution
Input (English): 2, 5, ['2277', 'z', '7839', 'H', 'n', '3675', '4625', '2107']
Output (English): nH9387z