Task: Program Execution
Input (English): q, 1519, 691, T, A, 6019, w
Output (English): 1, 4, 5, 7