Task: Program Execution
Input (English): 8967, 9769, r, 1409, B, 2763, 365, K, 1911, b
Output (English): 8967, 9769, 1409, 2763, 365, 1911