Task: Program Execution
Input (English): Q, 3855, 8023, K, 7323, 5445, V, 4193, t, 8113
Output (English): 2, 3, 5, 6, 8, 10