Task: Program Execution
Input (English): 3, ['P', '1503', '1529', 'p', '6895', 't', '2663', '745', 's', '4585', '2945', 't']
Output (English): P, p, 2663, 4585