Task: Program Execution
Input (English): Q, 9819, k, 5347, Q, 6847, 1879, 6247
Output (English): Q, k, Q, 9819, 5347, 6847, 1879, 6247