Task: Program Execution
Input (English): Q, 6309, b, 4777, 9135, 5967, 9579, a, r, 3587, 6621
Output (English): Q, b, a, r