Task: Program Execution
Input (English): 4, 9, ['5005', 'D', '7727', '3257', '789', '6031', '2927', 'E', 'P']
Output (English): 325778960312927EP