Task: Program Execution
Input (English): 6, 15, ['5825', '5217', 'T', '5729', '4345', '8321', 'P', '7265', 'n', 'v', 'F', 'R', '4447', 'O', '1001', '1231', '2997', 'g']
Output (English): 1001O4447RFvn7265P8321