Task: Program Execution
Input (English): 1, ['5039', 'g', 'V', '3687', '8881', '8603', '2987', '39']
Output (English): 5039