Task: Program Execution
Input (English): Q, I, O, 295, B, H, 4741, 3099, 3617, B
Output (English): 1, 2, 3, 5, 6, 10