Task: Program Execution
Input (English): 5991, 6011, D, C, 1627, z, 5985, T, J, 4879, d
Output (English): D, C, z, T, J, d