Task: Program Execution
Input (English): v, M, 2461, V, i, e, 875, 7081, j, 3143, 5823
Output (English): 6