Task: Program Execution
Input (English): 5, 14, ['4745', 'Y', '1139', '6815', '8287', '4161', 'M', 'p', '1451', 'J', '7833', '1099', 'g', '3815', '2045', 'P']
Output (English): 3815g10997833J1451pM41618287