Task: Program Execution
Input (English): 4, ['6389', '8829', '8271', 'S', '5901', 'L', '2611', '283']
Output (English): 6389, 5901