Task: Program Execution
Input (English): 2, 8, ['v', '4089', 'w', '8721', '9493', '6171', 'P', '5221']
Output (English): 4089w872194936171P5221