Task: Program Execution
Input (English): 2, 9, ['4643', 's', '8563', '5021', '2783', 'M', 'G', '3729', 'J', 'Y', '1917', 'x', '5949', 'Q', '9895', '8977', '6915', 'p']
Output (English): 20096