Task: Program Execution
Input (English): q, 279, 113
Output (English): 1, 2, 3, 7, 9