Task: Program Execution
Input (English): 4859, Q, J, 6571, 7779, 9737, B
Output (English): Q, J, B