Task: Program Execution
Input (English): 3, ['Z', 'O', 'D', '5205', '4059', 'F', '277', '3723', '2365', '1707']
Output (English): Z, 5205, 277, 1707