Task: Program Execution
Input (English): g, F, 6091, Q, 9715, w, m, 7837, 615, G, M, z, 3605, B, M
Output (English): 10