Task: Program Execution
Input (English): X, 1403, 5921, p, i, 9645, Z, 9471, 9799, D, Q, 2709, 8073, 4473, 5067, d, i, I, h
Output (English): X, p, i, Z, D, Q, d, i, I, h