Task: Program Execution
Input (English): 5, 14, ['Q', 'J', '9253', '4175', '7793', 'Q', 'J', 'h', '9947', '7779', '5005', 'n', 'w', 'K', '2775', '9301', '6247']
Output (English): Kwn500577799947hJQ7793