Task: Program Execution
Input (English): 3, 7, ['2671', '8161', 'd', '3877', 'm', '5577', '473', 'i', 'c', '4835', 'I']
Output (English): 9927