Task: Program Execution
Input (English): 3, 6, ['K', 'A', 'G', 'C', '1177', 'Q', '8627', 'R', '6631', 'h', '8009']
Output (English): Q7711CG