Task: Program Execution
Input (English): 3, 8, ['A', '4235', 'w', 'y', '4877', 'M', 'Z', '4403', '969', '4749', 'n', 'x']
Output (English): 4403ZM4877yw