Task: Program Execution
Input (English): 1289, 3309, q, i
Output (English): 1, 2