Task: Program Execution
Input (English): b, B, N, Q, 7829, 4331, X, 1917, 1193, L, a, R
Output (English): 7829, 4331, 1917, 1193