Task: Program Execution
Input (English): P, L, 43, 9631, q, 1473, Z, 8381, p, 4129
Output (English): 3, 4, 6, 8, 10