Task: Program Execution
Input (English): 3, 3, ['w', 'p', '457']
Output (English): 457