Task: Program Execution
Input (English): I, 8397, 4761, 1529, 323, 6445, I, 4237, 7641, 7289, R, g, c
Output (English): 8