Task: Program Execution
Input (English): 2, 3, ['w', '2721', 'A', 'p']
Output (English): A1272