Task: Program Execution
Input (English): b, K, N, Q, 8763, 5753, g, 8879, z, 1395, z
Output (English): 4