Task: Program Execution
Input (English): 10, 12, ['3459', 'm', '8519', 'b', 'a', 'p', 'N', '4689', '7973', '6081', '9747', '4287', 's', '9525', '5833', 'B']
Output (English): 20115