Task: Program Execution
Input (English): G, 7903, 9571, 8919, L, D, 8419, q
Output (English): G, L, D, q