Task: Program Execution
Input (English): 8525, 6111, t, 5291, 3101, 1849, 4733, r, d, 4415, 3585, M, 3335, Q, 5185
Output (English): t, r, d, M, Q, 8525, 6111, 5291, 3101, 1849, 4733, 4415, 3585, 3335, 5185