Task: Program Execution
Input (English): 2, 4, ['a', '5375', '3625', 'M', '6297', 'F', 'J', '275', 'q', '421', 'w', '9183', 'd', 'Y', '9967', '7589', '2825', 'G']
Output (English): 9000