Task: Program Execution
Input (English): 12, 12, ['4033', '9871', '9985', '4095', 'I', '4015', '337', 'c', '3047', 'c', 'x', '6781', 'M']
Output (English): 1876