Task: Program Execution
Input (English): q, 297, 365, 457, r, f, 143, p, t, 313, v, 135, b
Output (English): 1, 2, 3, 4, 5, 6, 7, 9