Task: Program Execution
Input (English): 897, v, q, W, 4049, r, p, 6165, A, 9707, 841
Output (English): 2, 3, 4, 6, 7, 9