Task: Program Execution
Input (English): 381, q, 9661, 1369, 4135, 1709, c, 4837, p, 5979, x, 3017, 509
Output (English): 2, 7, 9, 11