Task: Program Execution
Input (English): r, T, 2957, 6167, 7017, D, 5831, z
Output (English): r, T, D, z