Task: Program Execution
Input (English): D, n, a, 3509, 2961, 7149, X, W, 9927, S
Output (English): D, n, a, X, W, S, 3509, 2961, 7149, 9927