Task: Program Execution
Input (English): x, 8333, g, 4101, a, h, 4371, 7963, 1267, d
Output (English): a, d, g, h, x