Task: Program Execution
Input (English): A, K, 3457, Q, 9319, 6851, B, g, N, G
Output (English): 3