Task: Program Execution
Input (English): 3511, b, a, 2975, c, 5405, i, 2031, 8307, c, 9967, H
Output (English): 6