Task: Program Execution
Input (English): 2, 4, ['3961', 'D', '4021', '5333', 'F', '4327']
Output (English): 9354