Task: Program Execution
Input (English): 3, 8, ['7639', '5965', '2329', 'l', '2797', '9973', '3107', 'P']
Output (English): P, 3107, 9973, 2797, l, 2329