Task: Program Execution
Input (English): q, 243, 223, 173, 427, 297
Output (English): 1, 2, 3, 4, 7, 9