Task: Program Execution
Input (English): 771, M, 5797, O, C, D, I, p, Q, 4139, 7399, 6599, 1841, d, Z, C
Output (English): 771, 5797, 4139, 7399, 6599, 1841