Task: Program Execution
Input (English): 4, 10, ['J', '7399', '2685', 'w', 'r', 'N', 'h', '4579', '2945', '9397', 'Q', '6731', 'N', 'v', '5337', '4087']
Output (English): 939729454579hNrw