Task: Program Execution
Input (English): 2, 16, ['1829', 'O', '1547', 's', 'X', 'h', 'F', '1145', 'j', 'J', '7239', '6093', '3617', 'z', 'E', '5877', '2549', '9679']
Output (English): 5877Ez361760937239Jj1145FhXs1547O