Task: Program Execution
Input (English): 4965, a, c, 4127, b, 2529, 3335, A, 2335, 4949, C, 3001, 1163, f, 8645, s, 1051, t, 4855, 4321, 5609, S, 1661
Output (English): 9