Task: Program Execution
Input (English): g, 5229, q, 7867, e, B, 631, 3809, 9675, O, 4745, 3515, 3225, 2317, 707
Output (English): 1, 3, 5, 6, 10