Task: Program Execution
Input (English): 7993, 7091, 6459, 2769, q
Output (English): 1, 2, 3, 4