Task: Program Execution
Input (English): 3, 8, ['4791', 'P', 'N', '2515', 'd', '8639', '8391', 'T']
Output (English): N, 2515, d, 8639, 8391, T