Task: Program Execution
Input (English): 5, 7, ['U', 'P', 'w', 'Y', '963', 'B', 'p', 'w', 'n', '9767']
Output (English): pB963