Task: Program Execution
Input (English): 2, 5, ['w', '1451', 'N', '2715', 'H', 'S', '8489', 'D', 'Y', 'H', 'W']
Output (English): H2715N1451