Task: Program Execution
Input (English): 2321, Z, I, T, 5161, P, 9971, 9615, f, 6253, c, 2651
Output (English): 2321, 5161, 9971, 9615, 6253, 2651