Task: Program Execution
Input (English): Z, 8385, 9587, W, N, 5335, 7981, h, 9571, 1699, U
Output (English): Z, W, N, h, U