Task: Program Execution
Input (English): 5, ['J', '1307', '9041', '2459', '9749', 'F', '1805', '717', '791', 'k', '3629', '9947', 'L', '7383', 'l', '8015']
Output (English): J, F, 3629, 8015