Task: Program Execution
Input (English): 5, 6, ['D', 'D', '3975', 'J', 'H', 'D', '879', '3309']
Output (English): HD