Task: Program Execution
Input (English): 4901, b, D, 9347, S, 9023, 6791, w, 109, L, 1523, M, G, 2355
Output (English): 4901, 9347, 9023, 6791, 109, 1523, 2355