Task: Program Execution
Input (English): Q, S, k, 2291, 1667, m, 9271, 4805, l, d, 1139, 8673, 7029, D, 2395, Z, 2753, m
Output (English): Q, S, k, m, l, d, D, Z, m, 2291, 1667, 9271, 4805, 1139, 8673, 7029, 2395, 2753