Task: Program Execution
Input (English): 331, 93, q, p, 41, 255
Output (English): 1, 2, 3, 4, 5, 9