Task: Program Execution
Input (English): 3, ['D', 'I', '5209', '6165', '5365', 'P', '9881', '7015', 'A', 'A']
Output (English): 6165, 5365, P, 9881, 7015, A, A