Task: Program Execution
Input (English): q, 301, 87, z, 295
Output (English): 0, 1, 2, 3, 5, 7, 8, 9