Task: Program Execution
Input (English): Q, 587, Y, b, 7249, 8277, 649, b, 1439, I, 6863, v, 1845, f
Output (English): 1, 3, 4, 8, 10, 12, 14