Task: Program Execution
Input (English): q, 451, 391, z, o, 135, 465, q
Output (English): 1, 3, 4, 5, 6, 9