Task: Program Execution
Input (English): E, 4997, d, F, 6849, 7421, q
Output (English): 2, 5, 6