Task: Program Execution
Input (English): Q, 3403, 9663, 3487, f, 3235, h, 5995, C, 3961, a, 5085, b, 4847, 4521, q, Q
Output (English): 9