Task: Program Execution
Input (English): J, 2187, 2149, J, 4657, 8741, T, R, X
Output (English): 5