Task: Program Execution
Input (English): 997, O, 8227, X, e, i, 2345, 1743, o, 709, z, L, Q, 7971, 397, p, L, a
Output (English): 997, 8227, 2345, 1743, 709, 7971, 397