Task: Program Execution
Input (English): J, 5067, 4165, E, J, 4625, 1271, 7407, 6719, r, 3751, 6065, 9687, E, X, z, 4281, p, 6525, 9759, D, 7705, 8319, Q
Output (English): J, E, J, r, E, X, z, p, D, Q