Task: Program Execution
Input (English): q, 6779, 4801, 283, 8005, 6703, 9247, h, 6751, 1341
Output (English): 2, 3, 4, 5, 6, 7, 9, 10