Task: Program Execution
Input (English): 3, 6, ['K', '3141', '9717', 'O', '535', 'Z']
Output (English): Z535O7179