Task: Program Execution
Input (English): 2, ['8375', '2945', 'P', '7301']
Output (English): P, 7301