Task: Program Execution
Input (English): 6129, K, 2453, B, Q, z, 9405, A, 6087, 7913, 1701, 9923, h, 5131
Output (English): 8