Task: Program Execution
Input (English): 1167, Q, 3383, J, B, M, v, 1203, 4961, g, X, 9903, J, D, B
Output (English): 10