Task: Program Execution
Input (English): 4, 7, ['4653', 'J', '3721', '6277', 'J', '1971', 'K', '5279', '1679']
Output (English): K1791J7726