Task: Program Execution
Input (English): B, 8165, 883, B, 4309, 459, 7257, 6269, t, w, R, 8561, 9571
Output (English): 8165, 883, 4309, 459, 7257, 6269, 8561, 9571