Task: Program Execution
Input (English): 3, ['p', '7797', 'g', 'D', '4643', '6205', '2987', 'j', 'N']
Output (English): p, D, 2987