Task: Program Execution
Input (English): 2, 4, ['1191', 'V', 'n', '5931']
Output (English): 5931