Task: Program Execution
Input (English): 5, 12, ['1997', 'g', 'q', '2311', '8095', '9241', 'P', '3773', '4851', '2307', '8491', 'Q', 'q']
Output (English): 80959241P3773485123078491Q