Task: Program Execution
Input (English): 2, 3, ['P', 'w', '7111', '9909']
Output (English): 1117w