Task: Program Execution
Input (English): M, M, S, g, v, 1219, j, 3233, O, 5271, g, I, n, 2585, F, 865, 6413, 2331
Output (English): 6, 8, 10, 14, 16, 17, 18