Task: Program Execution
Input (English): q, 375, f, 111
Output (English): 1, 3, 5, 7