Task: Program Execution
Input (English): g, 13, q, 107, 365, v, k, 171, 337, 379, s, 1
Output (English): 0, 1, 3, 5, 6, 7, 9