Task: Program Execution
Input (English): 1349, C, 4229, 1951, R, 9501, g, L, c, C
Output (English): 4