Task: Program Execution
Input (English): 6, 14, ['5249', '8597', 'G', '6197', 'o', 'M', 'Q', '8417', 'W', 'Y', 'm', '2761', 'g', '7383', 't', '2745', 'g', 'm']
Output (English): 7383g2761mYW8417QM