Task: Program Execution
Input (English): 1, 1, ['9789', 'T', 'A', '4107']
Output (English): 9879