Task: Program Execution
Input (English): 7, 8, ['4591', '8275', '1001', 's', 'T', '7283', '173', 'D', 'M', 'c', '3305', '6261']
Output (English): D371