Task: Program Execution
Input (English): 5, 7, ['I', 'r', '7583', 'R', 'V', '391', 'c', 'X']
Output (English): 391