Task: Program Execution
Input (English): 285, 471, q, 313, 323, 71, 225, a, x
Output (English): 1, 2, 3, 4, 5, 7, 8