Task: Program Execution
Input (English): 4, 12, ['p', '7943', 'D', '1267', 'd', '5309', '8975', 'J', '7723', 'y', '2459', 'N']
Output (English): N2459y7723J89755309d1267