Task: Program Execution
Input (English): d, g, 9019, 9987, 8713, 9513, a, 2043, d, 5817, w, d
Output (English): a, d, g, w