Task: Program Execution
Input (English): 5, 7, ['6017', 'F', '1077', 'i', '2789', '1295', 'h', '6633', '1575', 'C', 'Q', '231', '9391', 'V', 'Y', 'S', '9469']
Output (English): 4084