Task: Program Execution
Input (English): 5, 11, ['i', '1561', 'd', 'a', '2889', 'V', '8371', '521', 'V', '7609', 'M', 'I', '1557']
Output (English): 2889V8371521V7609M