Task: Program Execution
Input (English): 2, ['7253', '2387', 'D', '7207', 'P']
Output (English): D, 7207, P