Task: Program Execution
Input (English): 887, p, 3819, 2727, 1407, b, n, 737, d, w, q, 6877
Output (English): b, d, n, p, q, w