Task: Program Execution
Input (English): 2, 3, ['v', 'w', 'P', '3759', 't', '7133']
Output (English): Pw