Task: Program Execution
Input (English): 4, ['a', 'N', 'D', 'b', 'd', 'U', 'Z', '1649', '6709', 'Y']
Output (English): a, d, 6709