Task: Program Execution
Input (English): 14, 14, ['D', 'a', '159', 'j', 'Z', '7987', 'K', '4955', '3971', '1557', '4977', 'G', '117', '5711']
Output (English): 5711