Task: Program Execution
Input (English): 6, 23, ['J', 'p', 'P', 'p', '5161', '8457', 'o', '9197', 'F', '2875', 'n', 'w', 'F', '2269', 'H', 'H', '5335', '3499', 's', 'M', '3453', '511', '8807', 'i', '3625']
Output (English): 8457o9197F2875nwF2269HH53353499sM34535118807