Task: Program Execution
Input (English): 4031, d, I, h, i, P, 8703, 809, 3395, g, 9829, 199, 9049, K, 6951, j, B, n, Q, D
Output (English): 4031, 8703, 809, 3395, 9829, 199, 9049, 6951