Task: Program Execution
Input (English): 2, 4, ['v', 'M', 'm', '2087', '159', '2307', '9391', 'C', 'p', '2771']
Output (English): 2087