Task: Program Execution
Input (English): 4, 7, ['U', '8649', 'q', '2395', 't', '5401', '7171', '4807', 'g', 'e', 's', 'z', '3367', '1651']
Output (English): 14967