Task: Program Execution
Input (English): 2, 12, ['3589', 'h', 'Q', 'I', '117', 'n', '3491', 'h', '6877', 'J', 'p', '1935', 'F', '2781', 'r', '6763', 's', 'N', 'r', '665', '8333']
Output (English): 1935pJ6877h3491n117IQh