Task: Program Execution
Input (English): 3, 10, ['7887', '3131', '9187', '2603', '4105', 's', '6753', '1411', 'W', '1919', 'G', '4243', 'Y', '5607']
Output (English): 25978