Task: Program Execution
Input (English): z, 3669, u, M, 3661, 8351, 1097, 9315, q, Z, L
Output (English): z, u, M, q, Z, L, 3669, 3661, 8351, 1097, 9315