Task: Program Execution
Input (English): 2, 2, ['V', '1489']
Output (English): 9841