Task: Program Execution
Input (English): Q, 1049, t, 439, 5207, 7779, 5057, t, f, v, 7277, S
Output (English): 2, 4, 5, 6, 7, 11