Task: Program Execution
Input (English): 3, 10, ['2467', '3367', '3419', '6049', '585', 'F', 'g', 'T', 'h', 'l', 'O', '7551']
Output (English): lhTgF58594069143