Task: Program Execution
Input (English): 3, 6, ['t', 'E', '1999', 'w', 'T', 'T', '7509', '1605', '5847']
Output (English): TTw1999