Task: Program Execution
Input (English): 433, 339, n, 11, q
Output (English): 1, 3, 4, 9