Task: Program Execution
Input (English): w, 6117, c, 4751, 3439, 2961, 1873, 4885, B, L
Output (English): w, c, B, L