Task: Program Execution
Input (English): 4, 7, ['1917', '205', '4335', 'D', 'C', 'H', '961', '193', 'C', '2717', 'F', '3113', '2999', 'd']
Output (English): D, C, H, 961