Task: Program Execution
Input (English): 6, ['8739', '2193', '1235', '7945', '2107', 'P', '3171', 'Q', 'I', '7403', '5117', '3655', 'a', '4757', 'n', 'S', 'q', '525', 'k', '4653', 'x', 'z', 'S', '4503', 'P', '7927', 'n', '2781', 'Z']
Output (English): 8739, 2193, 1235, 7945, 2107, P