Task: Program Execution
Input (English): 159, 121, q, o, 147
Output (English): 1, 2, 4, 5, 7, 9