Task: Program Execution
Input (English): r, Q, V, J, 2947, 6231, p, 9023, N, 9769
Output (English): 5, 6, 8, 10