Task: Program Execution
Input (English): R, 9997, 4137, 3385, C, 121, f, 9489, q, f, 7833, 3635, 9947, C, 8427, T, p, b, k
Output (English): 10