Task: Program Execution
Input (English): 3, 10, ['p', 'b', '451', '2929', 'd', '847', 'C', '6687', 's', 'h', '3713']
Output (English): hs6687C847d2929451