Task: Program Execution
Input (English): 4, 6, ['6087', 'h', 'x', '4707', '3341', 'p', '1723', 'z', 'Q', '301', 'Y', '7291', '6821', 'B', '911', '373', '2561', 'z', 'b']
Output (English): 8048