Task: Program Execution
Input (English): 3, 7, ['9389', 'z', '9167', 'c', 'J', 'B', 'n', '6369', '8497', '1971']
Output (English): nBJc9167