Task: Program Execution
Input (English): 6333, 8807, 3363, 9687, q
Output (English): 1, 2, 3, 4