Task: Program Execution
Input (English): 25, m, 491, 347, d, p, b, 349, 7, a, x, o
Output (English): 1, 2, 3, 4, 5, 7, 9