Task: Program Execution
Input (English): 2891, 6859, 6955, R, 3861, S, U, I, n, 6861, J, 6713, P
Output (English): 6