Task: Program Execution
Input (English): 7, 12, ['6401', '5181', 'q', 'a', 'e', '2581', 'T', 'T', 'T', 'P', 'p', '5801', 'A', '5829']
Output (English): TTTPp5801