Task: Program Execution
Input (English): 3, 5, ['7775', 'E', '5817', 'D', 'T']
Output (English): 5817, D, T