Task: Program Execution
Input (English): 5985, q, Q, H, 7727, e, 7639, 9723, U
Output (English): q, Q, H, e, U