Task: Program Execution
Input (English): 4, 10, ['3481', 'F', '7405', '5203', '901', '4071', '9177', 'C', 'V', 'N', 'D']
Output (English): 19352