Task: Program Execution
Input (English): 3, 6, ['J', '6391', 'h', '5795', '1587', 'Q', '1787', 'v', 'K', '2409']
Output (English): Q78515975h