Task: Program Execution
Input (English): Q, 499, y, h, 8873, 9817, 4219, 2161, 9511, 5423, d
Output (English): 499, 8873, 9817, 4219, 2161, 9511, 5423