Task: Program Execution
Input (English): 3, ['1817', 'd', 'n', 'N', 'T', 'o', '6239', '945', 'M']
Output (English): 1817, N, 6239